Skip to content

Commit 5c6c659

Browse files
authored
fix(webkit): update Docker file to include gstreamer (#2636)
1 parent 53f7f4e commit 5c6c659

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/docker/Dockerfile.bionic

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,34 @@ RUN apt-get install -y libwoff1 \
3131
libgles2 \
3232
libvpx5
3333

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
3541

3642
RUN apt-get install -y libnss3 \
3743
libxss1 \
3844
libasound2 \
3945
fonts-noto-color-emoji
4046

41-
# 4. Install Firefox dependencies
47+
# 5. Install Firefox dependencies
4248

4349
RUN apt-get install -y libdbus-glib-1-2 \
4450
libxt6
4551

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.
4753

4854
RUN apt-get install -y ffmpeg
4955

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
5157
RUN groupadd -r pwuser && useradd -r -g pwuser -G audio,video pwuser \
5258
&& mkdir -p /home/pwuser/Downloads \
5359
&& chown -R pwuser:pwuser /home/pwuser
5460

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
5662
RUN apt-get install -y xvfb
5763

5864
# Run everything after as non-privileged user.

0 commit comments

Comments
 (0)