glmgate / Dockerfile
DEV
Simplify Dockerfile: use playwright --with-deps, remove Xvfb
7667691
Raw
History Blame Contribute Delete
713 Bytes
# 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"]