Spaces:
Sleeping
Sleeping
File size: 355 Bytes
500c1ba |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# Base image
FROM python:3.8-slim
# Set working directory
WORKDIR /app
# Copy requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Command to run the FastAPI application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |