allora/Dockerfile

20 lines
429 B
Docker
Raw Permalink Normal View History

FROM python:3.11-slim AS project_env
2024-03-06 18:53:48 +03:00
2024-09-05 16:41:27 +03:00
# Install curl
RUN apt-get update && apt-get install -y curl
2024-03-06 18:53:48 +03:00
# Set the working directory in the container
WORKDIR /app
# 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"]