meal_homework/Dockerfile

11 lines
246 B
Docker
Raw Normal View History

2022-02-13 20:38:02 +01:00
FROM python:3-slim
ADD mealapi requirements.txt /mealapi/
WORKDIR /mealapi/
RUN pip3 install -r requirements.txt
ENV GUNICORN_LOGLEVEL="info"
2022-02-13 21:10:02 +01:00
EXPOSE 8080
CMD ["gunicorn", "-b", "0.0.0.0:8080", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]