Use Europe/Paris timezone and group ENV
This commit is contained in:
parent
0e199c48b0
commit
e9cb109a74
1 changed files with 4 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
||||||
FROM python:3.6
|
FROM python:3.6
|
||||||
|
|
||||||
|
RUN ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
|
||||||
|
dpkg-reconfigure -f noninteractive tzdata
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
VOLUME /app/staticfiles
|
VOLUME /app/staticfiles
|
||||||
ENV DATABASE_URL postgres://postgresql:postgresql@db:5432/workout
|
|
||||||
|
|
||||||
RUN pip3 install pipenv
|
RUN pip3 install pipenv
|
||||||
COPY Pipfile Pipfile.lock ./
|
COPY Pipfile Pipfile.lock ./
|
||||||
|
@ -14,6 +16,7 @@ COPY . ./
|
||||||
RUN chmod +x bash/run-prod.sh
|
RUN chmod +x bash/run-prod.sh
|
||||||
CMD bash/run-prod.sh
|
CMD bash/run-prod.sh
|
||||||
|
|
||||||
|
ENV DATABASE_URL postgres://postgresql:postgresql@db:5432/workout
|
||||||
ENV SECRET_KEY ''
|
ENV SECRET_KEY ''
|
||||||
ENV MAILGUN_ACCESS_KEY ''
|
ENV MAILGUN_ACCESS_KEY ''
|
||||||
ENV MAILGUN_SERVER_NAME ''
|
ENV MAILGUN_SERVER_NAME ''
|
||||||
|
|
Loading…
Reference in a new issue