-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
70 lines (66 loc) · 2.09 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 ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble
ENV \
CUSTOM_PORT="8080" \
CUSTOM_HTTPS_PORT="8181" \
HOME="/config" \
TITLE="XMind 8"
RUN \
echo "**** install runtime packages ****" && \
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
apt-get update && \
apt-get install -y --no-install-recommends \
dbus \
fcitx-rime \
fonts-wqy-microhei \
ttf-mscorefonts-installer \
openjdk-8-jre \
libgtk2.0-0 \
libwebkit2gtk-4.1-0 \
lame \
libc6 \
libglib2.0-0 \
libnss3 \
libopengl0 \
libqpdf29t64 \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
python3-xdg \
ttf-wqy-zenhei \
wget \
unzip && \
apt-get install -y \
speech-dispatcher && \
echo "**** install XMind 8 ****" && \
mkdir -p /opt/xmind && \
cd /opt/xmind && \
curl -Lo /tmp/xmind8.zip https://www.xmind.net/xmind/downloads/xmind-8-update9-linux.zip && \
unzip -q /tmp/xmind8.zip -d /opt/xmind && \
echo "**** install fonts ****" && \
mkdir -p /usr/share/fonts/xmind/ && \
cp -R /opt/xmind/fonts/* /usr/share/fonts/xmind/ && \
fc-cache -f && \
echo "**** setting up user config ****" && \
sed -i "s/\.\.\/workspace/@user\.home\/.workspace/g" "/opt/xmind/XMind_amd64/XMind.ini" && \
sed -i "s/\.\/configuration/@user\.home\/\.configuration/g" "/opt/xmind/XMind_amd64/XMind.ini" && \
sed -i "s/^\.\./\/opt\/xmind/g" "/opt/xmind/XMind_amd64/XMind.ini" && \
dbus-uuidgen > /etc/machine-id && \
echo "**** cleanup ****" && \
sed -i 's|</applications>| <application name="XMind" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
ARG VCS_REF
ARG VCS_URL
ARG BUILD_DATE
LABEL org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.vcs-url=${VCS_URL} \
org.label-schema.build-date=${BUILD_DATE}