-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
70 lines (65 loc) · 2.96 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
FROM phusion/baseimage:0.11
# Set correct environment variables
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV WINEARCH win32
ENV DISPLAY :0
ENV WINEPREFIX /home/docker/.wine
ENV HOME /home/docker/
ENV NOVNC_HOME /usr/libexec/noVNCdim
# Updating and upgrading a bit.
# Install vnc, window manager and basic tools
RUN apt-get update && \
apt-get install -y --no-install-recommends language-pack-zh-hant x11vnc supervisor fluxbox git sudo && \
dpkg --add-architecture i386 && \
# We need software-properties-common to add ppas.
curl https://dl.winehq.org/wine-builds/winehq.key -o /tmp/Release.key && \
apt-get install -y --no-install-recommends software-properties-common && \
apt-key add /tmp/Release.key && \
apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/' && \
add-apt-repository ppa:cybermax-dexter/sdl2-backport && \
apt-get update && \
apt-get install -y --no-install-recommends winehq-stable && \
apt-get install -y --no-install-recommends xvfb python3 && \
# Install winetricks
curl -SL -k https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -o /usr/local/bin/winetricks && \
chmod a+x /usr/local/bin/winetricks && \
# Installation of winbind to stop ntlm error messages.
apt-get install -y --no-install-recommends winbind && \
# Add Traditional Chinese Fonts
mkdir -p /usr/share/fonts/TTF/ && \
curl -SL -k https://github.com/adobe-fonts/source-han-sans/raw/release/OTF/TraditionalChinese/SourceHanSansTC-Regular.otf -o /usr/share/fonts/TTF/SourceHanSansTC-Regular.otf && \
curl -SL -k https://github.com/adobe-fonts/source-han-sans/raw/release/OTF/TraditionalChinese/SourceHanSansTC-Bold.otf -o /usr/share/fonts/TTF/SourceHanSansTC-Bold.otf && \
# Create user for ssh
adduser \
--home /home/docker \
--disabled-password \
--shell /bin/bash \
--gecos "user for running application" \
--quiet \
docker && \
echo "docker:1234" | chpasswd && \
adduser docker sudo && \
# Clone noVNC
mkdir -p "${NOVNC_HOME}"/utils/websockify && \
curl -L https://github.com/novnc/noVNC/archive/v1.3.0.tar.gz | tar xz --strip 1 -C "${NOVNC_HOME}" && \
curl -L https://github.com/novnc/websockify/archive/v0.10.0.tar.gz | tar xz --strip 1 -C "${NOVNC_HOME}"/utils/websockify && \
chmod +x -v "${NOVNC_HOME}"/utils/novnc_proxy && \
ln -s "${NOVNC_HOME}"/vnc.html "${NOVNC_HOME}"/index.html && \
chown -R docker "${NOVNC_HOME}" && \
# Cleaning up.
apt-get autoremove -y --purge && \
apt-get clean -y && \
rm -rf /home/wine/.cache && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add supervisor conf
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Add entrypoint.sh
COPY entrypoint.sh /etc/entrypoint.sh
# Add flubox menu
COPY menu /home/docker/.fluxbox/
ENTRYPOINT ["/bin/bash","/etc/entrypoint.sh"]
# Expose Port
EXPOSE 8080 22