latin/Dockerfile

16 lines
444 B
Docker
Raw Normal View History

2020-10-15 23:47:29 +02:00
FROM python:3-slim-buster
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
2020-11-23 17:57:14 +01:00
ENV FLASK_ENV production
2020-10-15 23:47:29 +02:00
COPY ./requirements.txt /requirements.txt
RUN apt-get update && \
apt-get install -y gosu && \
rm -rf /var/lib/apt/lists/* && \
2020-11-23 17:57:14 +01:00
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"]