emb-rep / Dockerfile
abadesalex's picture
emb first commit
5ebef9c
raw
history blame
658 Bytes
# Use Python 3.9 as base image
FROM python:3.9
# Set the working directory inside the container to /code
WORKDIR /code
# Copy the requirements.txt from the FastAPI folder into the working directory in the container
COPY ./FastAPI/requirements.txt /code/requirements.txt
# Install the Python packages specified in requirements.txt without cache and upgrading them
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the FastAPI application directory into the working directory
COPY ./FastAPI/app /code/app
# Set the command to run the application using Uvicorn
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]