2020-03-20 11:08:49 +01:00
|
|
|
FROM python:3.7-alpine
|
2019-06-08 13:33:13 +02:00
|
|
|
|
2020-03-20 11:08:49 +01:00
|
|
|
WORKDIR /app
|
|
|
|
|
2020-09-03 18:24:17 +02:00
|
|
|
COPY Pipfile* /app/
|
|
|
|
|
2020-03-20 11:08:49 +01:00
|
|
|
RUN pip install pipenv && pipenv install --system
|
2019-06-08 13:33:13 +02:00
|
|
|
|
2020-09-03 18:24:17 +02:00
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
|
2019-06-08 19:54:47 +02:00
|
|
|
RUN date +%d-%m-%Y > /app/date
|
|
|
|
|
2019-06-08 13:33:13 +02:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
CMD ["gunicorn", "-w 4", "-b 0.0.0.0", "app:app"]
|