File size: 435 Bytes
e1404c1
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
FROM python:3.11-slim
ENV PORT=7860
EXPOSE 7860
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 libxcb1 libxext6 libxrender1 && rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --upgrade pip
COPY backend/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PYTHONPATH="/app:/app/backend"
CMD ["python", "-m", "uvicorn", "backend.app.main:app", "--host", "0.0.0.0", "--port", "7860"]