-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.bionic
54 lines (40 loc) · 1.14 KB
/
Dockerfile.bionic
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 ubuntu:bionic
# fonts
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -qqy --no-install-recommends install \
fonts-liberation \
fonts-freefont-ttf \
fonts-dejavu \
fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core \
fonts-indic \
fonts-noto-color-emoji
# basic
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -qqy --no-install-recommends install \
jwm \
wmctrl \
sudo \
dnsutils \
libssl-dev \
libffi-dev \
net-tools \
libnss3-tools \
curl \
socat \
wget \
pulseaudio \
dbus-x11 \
ca-certificates \
bzip2
## sudo
RUN useradd browser --shell /bin/bash --create-home \
&& usermod -a -G sudo browser \
&& echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers \
&& echo 'browser:secret' | chpasswd
WORKDIR app
COPY jwmrc /home/browser/.jwmrc
ADD run_forever /usr/bin/run_forever
ADD browser_entrypoint.sh /app/browser_entrypoint.sh
USER browser
ENTRYPOINT ["/app/browser_entrypoint.sh"]
CMD ["/app/run.sh"]