File size: 713 Bytes
7667691 eec0c73 0882589 7667691 eec0c73 7667691 eec0c73 7667691 eec0c73 7667691 0882589 eec0c73 7667691 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # Runtime with Python and Playwright
FROM python:3.13-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
ca-certificates \
fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
# Install Playwright browsers
RUN playwright install chromium --with-deps
# Copy backend code
COPY glmgate /app/glmgate
COPY main.py /app/main.py
# Copy static frontend
COPY frontend /app/frontend
WORKDIR /app
ENV PORT=7860
EXPOSE 7860
# Start uvicorn (no Xvfb needed for headless Playwright)
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|