galerie-site/Dockerfile

24 lines
371 B
Docker
Raw Normal View History

2019-06-08 13:33:13 +02:00
FROM python:3.7-alpine as base
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY req.txt /requirements.txt
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
FROM base
COPY --from=builder /install /usr/local
2019-06-08 16:23:50 +02:00
COPY . /app
2019-06-08 13:33:13 +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"]