@@ -15,50 +15,53 @@ RUN apt-get update && apt-get install -y curl && \
15
15
apt-get install -y nodejs
16
16
17
17
# 2. Install WebKit dependencies
18
- RUN apt-get update && apt-get install -y libwoff1 \
19
- libopus0 \
20
- libwebp6 \
21
- libwebpdemux2 \
22
- libenchant1c2a \
23
- libgudev-1.0-0 \
24
- libsecret-1-0 \
25
- libhyphen0 \
26
- libgdk-pixbuf2.0-0 \
27
- libegl1 \
28
- libnotify4 \
29
- libxslt1.1 \
30
- libevent-2.1-6 \
31
- libgles2 \
32
- libvpx5
18
+ RUN apt-get update && apt-get install -y --no-install-recommends \
19
+ libwoff1 \
20
+ libopus0 \
21
+ libwebp6 \
22
+ libwebpdemux2 \
23
+ libenchant1c2a \
24
+ libgudev-1.0-0 \
25
+ libsecret-1-0 \
26
+ libhyphen0 \
27
+ libgdk-pixbuf2.0-0 \
28
+ libegl1 \
29
+ libnotify4 \
30
+ libxslt1.1 \
31
+ libevent-2.1-6 \
32
+ libgles2 \
33
+ libvpx5
33
34
34
35
# 3. Install gstreamer and plugins to support video playback in WebKit.
35
- RUN apt-get update && apt-get install -y libgstreamer-gl1.0-0 \
36
- libgstreamer-plugins-bad1.0-0 \
37
- gstreamer1.0-plugins-good
36
+ RUN apt-get update && apt-get install -y --no-install-recommends \
37
+ libgstreamer-gl1.0-0 \
38
+ libgstreamer-plugins-bad1.0-0 \
39
+ gstreamer1.0-plugins-good
38
40
39
41
# 4. Install Chromium dependencies
40
-
41
- RUN apt-get update && apt-get install -y libnss3 \
42
- libxss1 \
43
- libasound2 \
44
- fonts-noto-color-emoji
42
+ RUN apt-get update && apt-get install -y --no-install-recommends \
43
+ libnss3 \
44
+ libxss1 \
45
+ libasound2 \
46
+ fonts-noto-color-emoji
45
47
46
48
# 5. Install Firefox dependencies
47
-
48
- RUN apt-get update && apt-get install -y libdbus-glib-1-2 \
49
- libxt6
49
+ RUN apt-get update && apt-get install -y --no-install-recommends \
50
+ libdbus-glib-1-2 \
51
+ libxt6
50
52
51
53
# 6. Install ffmpeg to bring in audio and video codecs necessary for playing videos in Firefox.
52
-
53
- RUN apt-get update && apt-get install -y ffmpeg
54
+ RUN apt-get update && apt-get install -y --no-install-recommends \
55
+ ffmpeg
54
56
55
57
# 7. Add user so we don't need --no-sandbox in Chromium
56
58
RUN groupadd -r pwuser && useradd -r -g pwuser -G audio,video pwuser \
57
59
&& mkdir -p /home/pwuser/Downloads \
58
60
&& chown -R pwuser:pwuser /home/pwuser
59
61
60
62
# 8. (Optional) Install XVFB if there's a need to run browsers in headful mode
61
- RUN apt-get update && apt-get install -y xvfb
63
+ RUN apt-get update && apt-get install -y --no-install-recommends \
64
+ xvfb
62
65
63
- # Run everything after as non-privileged user.
66
+ # 9. Run everything after as non-privileged user.
64
67
USER pwuser
0 commit comments