@@ -31,28 +31,34 @@ RUN apt-get install -y libwoff1 \
31
31
libgles2 \
32
32
libvpx5
33
33
34
- # 3. Install Chromium dependencies
34
+ # 3. Install gstreamer and plugins to support video playback in WebKit.
35
+ RUN apt-get install -y gstreamer1.0-gl \
36
+ gstreamer1.0-plugins-base \
37
+ gstreamer1.0-plugins-good \
38
+ gstreamer1.0-plugins-bad
39
+
40
+ # 4. Install Chromium dependencies
35
41
36
42
RUN apt-get install -y libnss3 \
37
43
libxss1 \
38
44
libasound2 \
39
45
fonts-noto-color-emoji
40
46
41
- # 4 . Install Firefox dependencies
47
+ # 5 . Install Firefox dependencies
42
48
43
49
RUN apt-get install -y libdbus-glib-1-2 \
44
50
libxt6
45
51
46
- # 5 . Install ffmpeg to bring in audio and video codecs necessary for playing videos in Firefox.
52
+ # 6 . Install ffmpeg to bring in audio and video codecs necessary for playing videos in Firefox.
47
53
48
54
RUN apt-get install -y ffmpeg
49
55
50
- # 6 . Add user so we don't need --no-sandbox in Chromium
56
+ # 7 . Add user so we don't need --no-sandbox in Chromium
51
57
RUN groupadd -r pwuser && useradd -r -g pwuser -G audio,video pwuser \
52
58
&& mkdir -p /home/pwuser/Downloads \
53
59
&& chown -R pwuser:pwuser /home/pwuser
54
60
55
- # 7 . (Optional) Install XVFB if there's a need to run browsers in headful mode
61
+ # 8 . (Optional) Install XVFB if there's a need to run browsers in headful mode
56
62
RUN apt-get install -y xvfb
57
63
58
64
# Run everything after as non-privileged user.
0 commit comments