-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
57 lines (49 loc) · 1.51 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
FROM ubuntu:20.04
ENV HOME=/root \
DEBIAN_FRONTEND=noninteractive \
LANG=ja_JP.UTF-8 \
LC_ALL=${LANG} \
LANGUAGE=${LANG} \
TZ=Asia/Tokyo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone
# Install packages
RUN apt-get update
# Install apt-utils
RUN apt-get install -y apt-utils
# Install japanese language packs(optional)
RUN apt-get install -y \
language-pack-ja-base language-pack-ja \
ibus-anthy \
fonts-takao \
&& \
echo ja_JP.UTF-8 UTF-8 >> /etc/locale.gen && \
dpkg-reconfigure locales
# Install the required packages for desktop
RUN apt-get install -y \
supervisor \
xvfb \
xfce4 \
x11vnc \
&& \
# Install utilities(optional).
apt-get install -y \
wget \
curl \
net-tools \
vim-tiny \
xfce4-terminal \
&& \
# Clean up
apt-get clean && \
rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
# Install noVNC
RUN mkdir -p /opt/noVNC/utils/websockify && \
wget -qO- "http://github.com/novnc/noVNC/tarball/master" | tar -zx --strip-components=1 -C /opt/noVNC && \
wget -qO- "https://github.com/novnc/websockify/tarball/master" | tar -zx --strip-components=1 -C /opt/noVNC/utils/websockify && \
ln -s /opt/noVNC/vnc.html /opt/noVNC/index.html
# Rename user directories Japanese to English.
RUN LANG=C xdg-user-dirs-update --force
EXPOSE 8080
COPY supervisord/* /etc/supervisor/conf.d/
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]