File size: 439 Bytes
500c1ba 1c0f87b 500c1ba |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Base image
FROM python:3.8-slim
# Set working directory
WORKDIR /app
# Install git and other dependencies
RUN apt-get update && apt-get install -y git
# 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"] |