Spaces:
Sleeping
Sleeping
# Use the official Python image from the Docker Hub | |
FROM python:3.10-slim | |
# Set the working directory in the container | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
# Copy the rest of the application code to the working directory | |
COPY . . | |
# Expose the port FastAPI will run on | |
EXPOSE 7860 | |
# Command to run the FastAPI application | |
CMD ["python", "run.py"] |