Update Dockerfile
Browse files- Dockerfile +9 -2
Dockerfile
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
-
# ت
|
| 4 |
RUN apt-get update && apt-get install -y \
|
|
|
|
|
|
|
|
|
|
| 5 |
libnss3 \
|
| 6 |
libnspr4 \
|
| 7 |
libatk1.0-0 \
|
|
@@ -14,7 +17,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 14 |
libxdamage1 \
|
| 15 |
libxext6 \
|
| 16 |
libxfixes3 \
|
| 17 |
-
|
| 18 |
libgbm1 \
|
| 19 |
libasound2 \
|
| 20 |
libpango-1.0-0 \
|
|
@@ -23,11 +26,15 @@ RUN apt-get update && apt-get install -y \
|
|
| 23 |
|
| 24 |
WORKDIR /app
|
| 25 |
|
|
|
|
| 26 |
COPY requirements.txt .
|
| 27 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
| 28 |
RUN playwright install chromium
|
| 29 |
RUN playwright install-deps chromium
|
| 30 |
|
| 31 |
COPY . .
|
| 32 |
|
|
|
|
| 33 |
CMD ["python", "bot.py"]
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
+
# تحديث المستودعات وتثبيت المتطلبات الأساسية
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
+
wget \
|
| 6 |
+
gnupg \
|
| 7 |
+
libglib2.0-0 \
|
| 8 |
libnss3 \
|
| 9 |
libnspr4 \
|
| 10 |
libatk1.0-0 \
|
|
|
|
| 17 |
libxdamage1 \
|
| 18 |
libxext6 \
|
| 19 |
libxfixes3 \
|
| 20 |
+
libxrandr2 \
|
| 21 |
libgbm1 \
|
| 22 |
libasound2 \
|
| 23 |
libpango-1.0-0 \
|
|
|
|
| 26 |
|
| 27 |
WORKDIR /app
|
| 28 |
|
| 29 |
+
# نسخ ملف المكتبات وتثبيتها
|
| 30 |
COPY requirements.txt .
|
| 31 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 32 |
+
|
| 33 |
+
# تثبيت متصفح Chromium فقط مع اعتماداته
|
| 34 |
RUN playwright install chromium
|
| 35 |
RUN playwright install-deps chromium
|
| 36 |
|
| 37 |
COPY . .
|
| 38 |
|
| 39 |
+
# تشغيل البوت
|
| 40 |
CMD ["python", "bot.py"]
|