-
Notifications
You must be signed in to change notification settings - Fork 199
/
Dockerfile
63 lines (52 loc) · 1.26 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
#
# Stage 1: Builder
#
FROM ubuntu:eoan as Builder
ARG DEBIAN_FRONTEND=noninteractive
ENV LANG='C.UTF-8' \
LC_ALL='C.UTF-8' \
WINEDEBUG=-all
RUN dpkg --add-architecture i386 \
&& echo 'i386 Architecture Added'
RUN apt-get update \
&& apt-get install -y \
wine32:i386 \
winetricks:amd64 \
\
# https://github.com/wszqkzqk/deepin-wine-ubuntu/issues/188#issuecomment-554599956
ttf-wqy-microhei \
ttf-wqy-zenhei \
xfonts-wqy \
\
apt-transport-https:amd64 \
ca-certificates:amd64 \
cabextract:amd64 \
curl:amd64 \
gosu \
language-pack-zh-hans \
tzdata:amd64 \
unzip:amd64 \
wget:amd64 \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -fr /tmp/*
RUN groupadd group \
&& useradd -m -g group user \
&& chsh -s /bin/bash user \
&& echo "User created"
COPY --chown=user:group ./container_root/ /
RUN su user -c 'WINEARCH=win32 wine wineboot' \
\
&& echo 'quiet=on' > /etc/wgetrc \
&& su user -c 'winetricks -q win7' \
&& su user -c 'winetricks -q riched20' \
&& rm -rf /etc/wgetrc \
\
&& rm -rf /home/user/.cache/ /home/user/tmp/* \
&& echo "Wine: initialized"
ENV \
LANG=zh_CN.UTF-8 \
LC_ALL=zh_CN.UTF-8 \
TZ=Asia/Shanghai
ENTRYPOINT [ "/entrypoint.sh" ]
VOLUME /WechatFiles