7 / Dockerfile
iq7se2's picture
Rename Dockerfile (2) to Dockerfile
1af9547 verified
raw
history blame contribute delete
572 Bytes
FROM python:3.11-slim
# تثبيت التبعيات النظامية لـ Playwright
RUN apt-get update && apt-get install -y \
libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \
libcups2 libdrm2 libdbus-1-3 libxkbcommon0 \
libxcomposite1 libxdamage1 libxext6 libxfixes3 \
libxrandr2 libgbm1 libasound2 wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN playwright install chromium
RUN playwright install-deps chromium
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]