Update Dockerfile
Browse files- Dockerfile +33 -10
Dockerfile
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
-
# Use
|
| 2 |
-
FROM
|
| 3 |
|
| 4 |
-
# Install
|
| 5 |
-
RUN pip install playwright && playwright install chromium
|
| 6 |
-
|
| 7 |
-
# Install the missing system dependencies
|
| 8 |
RUN apt-get update && apt-get install -y \
|
|
|
|
|
|
|
| 9 |
libglib2.0-0 \
|
| 10 |
libnss3 \
|
| 11 |
libnspr4 \
|
|
@@ -31,10 +30,34 @@ RUN apt-get update && apt-get install -y \
|
|
| 31 |
libgtk-3-0 \
|
| 32 |
libpangocairo-1.0-0 \
|
| 33 |
libcairo-gobject2 \
|
| 34 |
-
libgdk-pixbuf2.0-0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
# Install Playwright
|
| 37 |
-
RUN playwright install
|
| 38 |
|
| 39 |
# Set the working directory
|
| 40 |
WORKDIR /app
|
|
@@ -43,4 +66,4 @@ WORKDIR /app
|
|
| 43 |
COPY selimium_try.py /app/
|
| 44 |
|
| 45 |
# Command to run the Python script
|
| 46 |
-
CMD ["
|
|
|
|
| 1 |
+
# Use an Ubuntu base image, which is officially supported by Playwright
|
| 2 |
+
FROM ubuntu:20.04
|
| 3 |
|
| 4 |
+
# Install necessary system packages
|
|
|
|
|
|
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
+
python3 \
|
| 7 |
+
python3-pip \
|
| 8 |
libglib2.0-0 \
|
| 9 |
libnss3 \
|
| 10 |
libnspr4 \
|
|
|
|
| 30 |
libgtk-3-0 \
|
| 31 |
libpangocairo-1.0-0 \
|
| 32 |
libcairo-gobject2 \
|
| 33 |
+
libgdk-pixbuf2.0-0 \
|
| 34 |
+
libicudata66 \
|
| 35 |
+
libicui18n66 \
|
| 36 |
+
libatomic1 \
|
| 37 |
+
libicuuc66 \
|
| 38 |
+
libxslt1 \
|
| 39 |
+
libwoff2dec1.0.2 \
|
| 40 |
+
libevent-2.1-7 \
|
| 41 |
+
libopus0 \
|
| 42 |
+
libwebpdemux2 \
|
| 43 |
+
libharfbuzz-icu0 \
|
| 44 |
+
libjpeg8 \
|
| 45 |
+
libwebpmux3 \
|
| 46 |
+
libenchant-2-2 \
|
| 47 |
+
libsecret-1-0 \
|
| 48 |
+
libhyphen0 \
|
| 49 |
+
libpcre2-8-0 \
|
| 50 |
+
libnghttp2-14 \
|
| 51 |
+
libegl1 \
|
| 52 |
+
libglx0 \
|
| 53 |
+
libgudev-1.0-0 \
|
| 54 |
+
libffi7 \
|
| 55 |
+
libevdev2 \
|
| 56 |
+
libgles2-2 \
|
| 57 |
+
libx264-155
|
| 58 |
|
| 59 |
+
# Install Playwright and its dependencies
|
| 60 |
+
RUN pip3 install playwright && playwright install chromium
|
| 61 |
|
| 62 |
# Set the working directory
|
| 63 |
WORKDIR /app
|
|
|
|
| 66 |
COPY selimium_try.py /app/
|
| 67 |
|
| 68 |
# Command to run the Python script
|
| 69 |
+
CMD ["python3", "selimium_try.py"]
|