-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (33 loc) · 863 Bytes
/
Dockerfile
File metadata and controls
40 lines (33 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Create Docker image running Firefox
#
# Author: Björn Hendriks, 2019
#
# ARG used in FROM requires a default
ARG baseImage=debian
FROM ${baseImage}
# ARG variables must be defined after FROM except for args used for FROM
ARG userName
ARG uid
ARG groupName
ARG gid
# Avoid blocking the update by interaction (at least tzdata blocks it entirely)
ENV DEBIAN_FRONTEND=noninteractive
# Install Firefox and supplementary tools
RUN apt-get update && \
apt-get install -y \
libpci3 \
firefox-esr \
pulseaudio-utils \
vlc \
vlc-data \
&& \
apt-get clean
# Run Firefox as ordinary user
RUN groupadd --gid ${gid} ${groupName} && \
useradd --uid ${uid} --gid ${gid} --create-home ${userName}
USER ${userName}
# Configure Pulseaudio client to route sound to host
COPY pulse-client.conf /etc/pulse/client.conf
# Start Firefox
CMD ["/usr/bin/firefox"]