Skip to content

Commit 1cebf87

Browse files
authored
chore(docker): skip "recommended" dependencies (#2917)
1 parent bce4b1a commit 1cebf87

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

docs/docker/Dockerfile.bionic

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,50 +15,53 @@ RUN apt-get update && apt-get install -y curl && \
1515
apt-get install -y nodejs
1616

1717
# 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
3334

3435
# 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
3840

3941
# 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
4547

4648
# 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
5052

5153
# 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
5456

5557
# 7. Add user so we don't need --no-sandbox in Chromium
5658
RUN groupadd -r pwuser && useradd -r -g pwuser -G audio,video pwuser \
5759
&& mkdir -p /home/pwuser/Downloads \
5860
&& chown -R pwuser:pwuser /home/pwuser
5961

6062
# 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
6265

63-
# Run everything after as non-privileged user.
66+
# 9. Run everything after as non-privileged user.
6467
USER pwuser

0 commit comments

Comments
 (0)