-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
77 lines (70 loc) · 2.29 KB
/
Dockerfile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM node:lts-buster
# Install Chromium, audio and other misc packages, cleanup, create Chromium policies folders, workarounds
RUN apt-get update && apt-get -y dist-upgrade && \
apt-get --no-install-recommends -y install \
dbus \
dbus-x11 \
xvfb \
xdotool \
openbox \
fonts-opensymbol \
fonts-symbola \
fonts-liberation \
fonts-freefont-ttf \
fonts-droid-fallback \
fonts-dejavu-core \
fonts-arphic-ukai \
fonts-arphic-uming \
fonts-ipafont-mincho \
fonts-ipafont-gothic \
fonts-unfonts-core \
fonts-noto-color-emoji \
fonts-noto \
fonts-nanum \
pulseaudio \
x11-session-utils \
libgstreamer1.0-0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-doc \
gstreamer1.0-tools \
gstreamer1.0-x \
gstreamer1.0-alsa \
gstreamer1.0-gl \
gstreamer1.0-gtk3 \
gstreamer1.0-qt5 \
gstreamer1.0-pulseaudio \
ffmpeg \
chromium \
sudo \
grep \
procps \
xdg-utils \
libnss3 \
libnspr4 \
libappindicator3-1 \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
&& mkdir -p /var/run/dbus \
&& mkdir -p /etc/chromium/policies/managed \
&& mkdir /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix && chown root /tmp/.X11-unix
# Add normal user
RUN useradd glados --shell /bin/bash --create-home \
&& usermod -a -G audio glados
# Copy information
WORKDIR /home/glados/.internal
COPY . .
# Chromium Policies & Preferences
COPY ./configs/chromium_policy.json /etc/chromium/policies/managed/policies.json
COPY ./configs/master_preferences.json /etc/chromium/master_preferences
# Pulseaudio Configuration
COPY ./configs/pulse_config.pa /tmp/pulse_config.pa
# Openbox Configuration
COPY ./configs/openbox_config.xml /var/lib/openbox/openbox_config.xml
# Install deps, build then cleanup
RUN yarn install --frozen-lockfile && yarn build && yarn cache clean && rm -rf src
# Run first Widevine component install for Chromium
RUN sudo -u glados bash ./widevine.sh
ENTRYPOINT [ "bash", "./start.sh" ]