manuels-scolaires/Dockerfile

35 lines
814 B
Docker
Raw Normal View History

2018-06-20 00:21:29 +02:00
FROM python:3.6-alpine
2018-05-25 14:46:27 +02:00
2018-06-20 00:21:29 +02:00
RUN apk add --update postgresql-libs && \
apk add --udpate --virtual .build-deps gcc musl-dev postgresql-dev tzdata && \
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
echo "Europe/Paris" > /etc/timezone
2018-05-25 14:46:27 +02:00
WORKDIR /app
EXPOSE 8000
VOLUME /app/staticfiles
RUN pip3 install pipenv
COPY Pipfile Pipfile.lock ./
RUN pipenv install --deploy
2018-05-25 14:46:27 +02:00
2018-06-20 00:21:29 +02:00
RUN apk del .build-deps
2018-05-25 14:46:27 +02:00
COPY . ./
2018-06-20 00:33:34 +02:00
CMD ["sh", "bash/run-prod.sh"]
2018-05-25 14:46:27 +02:00
2018-06-20 00:08:37 +02:00
HEALTHCHECK --interval=10s --timeout=10s CMD ["pipenv", "run", "python", "healthcheck.py"]
2018-06-19 23:52:48 +02:00
2018-06-02 18:11:51 +02:00
ENV DATABASE_URL postgres://postgresql:postgresql@db:5432/manuels
2018-05-25 14:46:27 +02:00
ENV SECRET_KEY ''
ENV MAILGUN_ACCESS_KEY ''
ENV MAILGUN_SERVER_NAME ''
ENV DJANGO_ENV ''
ENV ADMIN_EMAIL ''
ENV SERVER_EMAIL ''
2018-06-02 18:11:51 +02:00
ENV HOST ''
ENV REPLY_TO ''
ENV AUTHORIZED_EMAILS ''
ENV LIBRARIAN_EMAILS ''