Spaces:
Sleeping
Sleeping
FROM python:3.9-slim | |
# Install system packages | |
RUN apt-get update && apt-get install -y git | |
# Set working directory | |
WORKDIR /app | |
# Install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy the application files | |
COPY . . | |
# Expose the server port | |
EXPOSE 7860 | |
# Start the FastAPI server | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |