allora/Dockerfile
dhairya1899 4d95ca5fbd Dockerfile: fix FromAsCasing warning
Some recent versions of Docker require the FromAsCasing keyword to be in
uppercase

Signed-off-by: dhairya1899 <17itdhairya.parmar@gmail.com>
2024-08-15 01:18:24 +05:30

18 lines
425 B
Docker

# 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
# 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"]