Spaces:
Runtime error
Runtime error
# β Use Python base image | |
FROM python:3.11 | |
# β Set working directory | |
WORKDIR /app | |
# β Install dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# β Copy FastAPI script | |
COPY app.py . | |
# β Expose the port used by FastAPI | |
EXPOSE 7860 | |
# β Run FastAPI server | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |