Spaces:
Sleeping
Sleeping
File size: 410 Bytes
e064477 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Use the official Python image as the base
FROM python:3.9
# Set the working directory in the container
WORKDIR /app
# Copy all local files into the container
COPY . .
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port that FastAPI will run on
EXPOSE 7860
# Start the FastAPI app with Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|