Skip to content

Commit

Permalink
Changed timezone into an Docker image build argument. Tweaked indenta…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
esabol committed Jul 21, 2024
1 parent 1627ebc commit fe2ef74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/example/supervisord/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
FROM ubuntu:latest

ARG version=1.0
ARG timezone=America/New_York

LABEL description="Supervisord Base Image for Gearmand"
LABEL maintainer="Gearmand Developers https://github.com/gearman/gearmand"
LABEL version="${version}"

# Configure timezone
ENV DEBIAN_FRONTEND=noninteractive \
TZ=America/New_York \
TZ=${timezone} \
HOME=/root
RUN echo $TZ > /etc/timezone

# Install packages
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install \
supervisor \
tzdata \
supervisor \
tzdata \
&& apt-get clean autoclean \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit fe2ef74

Please sign in to comment.