CoolFace
Apppublic

mapak/Vero6

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
Dockerfile53 linesDownload Raw Back to root
1# Use Python 3.10 Bookworm as base (more stable for Playwright)2FROM python:3.10-slim-bookworm3 4# Set working directory5WORKDIR /app6 7# Install system dependencies for Playwright8# Added fonts-liberation and other essential libs9RUN apt-get update && apt-get install -y \10    libglib2.0-0 \11    libnss3 \12    libnspr4 \13    libatk1.0-0 \14    libatk-bridge2.0-0 \15    libcups2 \16    libdrm2 \17    libdbus-1-3 \18    libxcb1 \19    libxkbcommon0 \20    libx11-6 \21    libxcomposite1 \22    libxdamage1 \23    libxext6 \24    libxfixes3 \25    libxrandr2 \26    libgbm1 \27    libpango-1.0-0 \28    libcairo2 \29    libasound2 \30    fonts-liberation \31    libasound2-dev \32    && rm -rf /var/lib/apt/lists/*33 34# Copy requirements and install35COPY requirements_hf.txt .36RUN pip install --no-cache-dir -r requirements_hf.txt37 38# Install Playwright browsers (No need for install-deps as we handled it above)39RUN playwright install chromium40 41# Copy the script42COPY worker_hf.py .43 44# Environment variables (Can be overridden in HF Secrets)45ENV API_URL="http://43.134.39.181:3100"46ENV PYTHONUNBUFFERED=147 48# Expose port for Gradio49EXPOSE 786050 51# Run the worker52CMD ["python", "worker_hf.py"]53