allora/Dockerfile

20 lines
451 B
Docker
Raw Permalink Normal View History

2024-08-26 17:16:29 +03:00
# Use an official Python runtime as the base image
FROM amd64/python:3.9-buster as project_env
# Set the working directory in the container
WORKDIR /app
2024-09-05 03:20:57 +03:00
ENV FLASK_ENV=production
2024-08-26 17:16:29 +03:00
# Install dependencies
COPY requirements.txt requirements.txt
RUN pip install --upgrade pip setuptools \
&& pip install -r requirements.txt
FROM project_env
COPY . /app/
# Set the entrypoint command
CMD ["gunicorn", "--conf", "/app/gunicorn_conf.py", "main:app"]