django-refunds/Dockerfile

29 lines
591 B
Text
Raw Permalink Normal View History

2017-02-25 23:10:47 +01:00
FROM python:3-alpine
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
echo "Europe/Paris" > /etc/timezone
RUN apk add --no-cache postgresql-dev gcc musl-dev
WORKDIR /app
2018-04-02 12:57:25 +02:00
EXPOSE 8000
2017-02-25 23:10:47 +01:00
VOLUME /app/staticfiles
2018-04-02 12:57:25 +02:00
RUN pip3 install pipenv
COPY Pipfile Pipfile.lock ./
RUN pipenv install
2017-02-25 23:10:47 +01:00
2018-04-02 12:57:25 +02:00
COPY . ./
2017-02-25 23:10:47 +01:00
RUN chmod +x bash/run-prod.sh
2018-04-02 12:57:25 +02:00
CMD bash/run-prod.sh
2017-02-25 23:10:47 +01:00
2018-04-02 12:57:25 +02:00
ENV DATABASE_URL postgres://postgresql:postgresql@db:5432/refunds
ENV SECRET_KEY ''
ENV MAILGUN_ACCESS_KEY ''
ENV MAILGUN_SERVER_NAME ''
ENV DJANGO_ENV ''
ENV ADMIN_EMAIL ''
ENV SERVER_EMAIL ''