-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (45 loc) · 1.16 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
FROM debian:unstable-slim
LABEL maintainer="Backplane BV <[email protected]>"
# Install chromium
ARG AG="apt-get -yq --no-install-recommends"
ARG DEBIAN_FRONTEND="noninteractive"
RUN set -eux; \
$AG update; \
$AG upgrade; \
$AG install \
ca-certificates \
chromium \
chromium-l10n \
chromium-sandbox \
fonts-liberation \
fonts-roboto \
fonts-symbola \
hicolor-icon-theme \
libgtk-4-1 \
xauth \
; \
$AG autoremove; \
$AG clean; \
rm -rf \
/var/cache/debconf/*-old \
/var/lib/apt/lists/* \
/var/lib/dpkg/*-old \
;
# Install fontconfig
COPY [ "fonts.conf", "/etc/fonts/local.conf" ]
# Add non-privileged user and create a data directory so named/managed volumes
# get the right permissions
RUN set -eux; \
groupadd -r user; \
useradd --no-log-init --system --create-home -g user -G audio,video user; \
mkdir -p ~user/Downloads; \
chown -R user:user ~user; \
mkdir /data; \
chown user:user /data;
WORKDIR /home/user
# Last call for root-permissions
COPY [ "entrypoint.sh", "chromium_ssb.sh", "/" ]
# Run as non-privileged user
USER user
# Run chromium
ENTRYPOINT [ "/entrypoint.sh" ]