Spaces:
Sleeping
Sleeping
File size: 394 Bytes
c765e15 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.10-slim-bullseye
WORKDIR /app
# System dependencies
RUN apt-get update && apt-get install -y git && apt-get upgrade -y && apt-get clean
# Install Python deps
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy source
COPY . .
ENV PORT=7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|