c / Dockerfile
yiyicho's picture
Upload 5 files
aa29b42 verified
Raw
History Blame Contribute Delete
714 Bytes
FROM python:3.11-slim
# System dependencies for Chromium/Playwright
RUN apt-get update && apt-get install -y \
wget curl gnupg ca-certificates \
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \
libgbm1 libasound2 libpango-1.0-0 libcairo2 \
--no-install-recommends && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Install Playwright's Chromium browser
RUN playwright install chromium
RUN playwright install-deps chromium
# Copy app files
COPY app.py .
COPY cv_challenge.py .
EXPOSE 7860
CMD ["python", "app.py"]