latin/Dockerfile
2020-11-23 17:57:14 +01:00

16 lines
444 B
Docker

FROM python:3-slim-buster
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV FLASK_ENV production
COPY ./requirements.txt /requirements.txt
RUN apt-get update && \
apt-get install -y gosu && \
rm -rf /var/lib/apt/lists/* && \
pip install -r /requirements.txt
COPY ./app/ /app
WORKDIR /
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["gunicorn", "--chdir", "/app", "--bind", "0.0.0.0:5000", "app:app"]