prism-api-backend / Dockerfile
TanishkOrion's picture
Deploy isolated API Backend
e1404c1
Raw
History Blame Contribute Delete
435 Bytes
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"]