2024-03-06 18:53:48 +03:00
|
|
|
# Use an official Python runtime as the base image
|
2024-08-14 22:48:24 +03:00
|
|
|
FROM amd64/python:3.9-buster AS project_env
|
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"]
|