Spaces:
Runtime error
Runtime error
File size: 374 Bytes
093b386 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# β
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"]
|