FROM python:3.10-slim | |
WORKDIR /app | |
# Install git | |
RUN apt-get update && apt-get install -y git && apt-get clean | |
# Install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy your app code | |
COPY app.py . | |
# Start your app | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |