3lips/api/Dockerfile
2024-02-29 15:28:03 +00:00

16 lines
427 B
Docker

FROM python:3.9-slim
WORKDIR /app
COPY api /app
# install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# make port 5000 available to the world outside this container
EXPOSE 5000
# define environment variable
ENV FLASK_APP=api.py
# run Gunicorn instead of the default Flask development server
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--timeout", "60", "main:app"]