PS_Deploy / Dockerfile
Fatma12Atef's picture
Upload 3 files
a1b2ba8 verified
Raw
History Blame Contribute Delete
404 Bytes
# Use an official Python runtime
FROM python:3.10
# Set the working directory
WORKDIR /code
# Copy requirements and install them
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all your code and folders
COPY . .
# Run the FastAPI app on port 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]