Spaces:
Runtime error
Runtime error
# Use official Python image | |
FROM python:3.9 | |
# Set working directory | |
WORKDIR /app | |
# Copy dependencies | |
COPY requirements.txt . | |
# Install dependencies | |
RUN pip install --upgrade pip && pip install -r requirements.txt | |
# Copy all app files | |
COPY . . | |
# Expose the port | |
EXPOSE 7860 | |
# Run the app with Uvicorn | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |