forked from huangtao00/docker-wine-coolq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (46 loc) · 2.18 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
FROM oott123/novnc:v0.1.1
RUN apt-get update && \
apt-get install -y --allow-unauthenticated \
software-properties-common apt-transport-https \
cabextract unzip python-numpy \
language-pack-zh-hans tzdata ttf-wqy-microhei && \
# 安装 wine
wget -nc https://dl.winehq.org/wine-builds/Release.key -O /tmp/wine.key && \
apt-key add /tmp/wine.key && rm -f /tmp/wine.key && \
apt-add-repository -y https://dl.winehq.org/wine-builds/ubuntu && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y --allow-unauthenticated --install-recommends winehq-devel && \
wget -O /usr/local/bin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && \
chmod 755 /usr/local/bin/winetricks && \
apt-get clean && \
rm -rf /var/lib/apt/lists
COPY winhttp_2ksp4.verb /tmp/winhttp_2ksp4.verb
COPY coolq.reg /tmp/coolq.reg
COPY luna.msstyles /tmp/luna.msstyles
RUN sudo -Hu user WINEARCH=win32 /usr/bin/wine wineboot && \
sudo -Hu user mkdir -p /home/user/.wine/drive_c/windows/Resources/Themes/luna/ && \
sudo -Hu user cp /tmp/luna.msstyles /home/user/.wine/drive_c/windows/Resources/Themes/luna/luna.msstyles && \
sudo -Hu user /usr/bin/wine regedit.exe /s /tmp/coolq.reg && \
sudo -Hu user wineboot && \
echo 'quiet=on' > /etc/wgetrc && \
sudo -Hu user /usr/local/bin/winetricks -q win7 && \
sudo -Hu user /usr/local/bin/winetricks -q /tmp/winhttp_2ksp4.verb && \
sudo -Hu user /usr/local/bin/winetricks -q msscript && \
sudo -Hu user /usr/local/bin/winetricks -q fontsmooth=rgb && \
wget https://dlsec.cqp.me/docker-simsun -O /tmp/simsun.zip && \
rm /etc/wgetrc && \
mkdir -p /home/user/.wine/drive_c/windows/Fonts && \
unzip /tmp/simsun.zip -d /home/user/.wine/drive_c/windows/Fonts && \
rm -f /tmp/simsun.zip && \
mkdir /home/user/coolq && \
chsh -s /bin/bash user && \
rm -rf /home/user/.cache/winetricks
ENV LANG=zh_CN.UTF-8 \
LC_ALL=zh_CN.UTF-8 \
TZ=Asia/Shanghai \
COOLQ_URL=http://dlsec.cqp.me/cqa-tuling
COPY vncmain.sh /app/vncmain.sh
COPY cq /usr/local/bin/cq
COPY cont-init.d /etc/cont-init.d/
VOLUME ["/home/user/coolq"]