forked from huan/docker-wechat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (46 loc) · 1.72 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
FROM zixia/wine:6.0
USER root
RUN apt update && apt install -y \
locales \
mesa-utils \
procps \
pev \
sudo \
vim \
pulseaudio-utils \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -fr /tmp/*
ENV \
LANG=zh_CN.UTF-8 \
LC_ALL=zh_CN.UTF-8
COPY --chown=user:group container_root/ /
COPY [A-Z]* /
COPY VERSION /VERSION.docker-wechat
COPY pulse-client.conf /etc/pulse/client.conf
RUN chown user /home \
&& localedef -i zh_CN -c -f UTF-8 zh_CN.UTF-8 \
&& echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER user
RUN bash -x /setup.sh
ENTRYPOINT [ "/entrypoint.sh" ]
#
# Huan(202004): VOLUME should be put to the END of the Dockerfile
# because it will frezz the contents in the volume directory
# which means the content in the directory will lost all changes after the VOLUME command
#
RUN mkdir -p "/home/user/WeChat Files" "/home/user/.wine/drive_c/users/user/Application Data" \
&& chown user:group "/home/user/WeChat Files" "/home/user/.wine/drive_c/users/user/Application Data"
VOLUME [\
"/home/user/WeChat Files", \
"/home/user/.wine/drive_c/users/user/Application Data" \
]
LABEL \
org.opencontainers.image.authors="Huan LI (李卓桓) <[email protected]>" \
org.opencontainers.image.description="DoChat(盒装微信) is a Dockerized WeChat(微信) PC Windows Client for Linux." \
org.opencontainers.image.documentation="https://github.com/huan/docker-wechat/#readme" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.source="[email protected]:huan/docker-wechat.git" \
org.opencontainers.image.title="DoChat" \
org.opencontainers.image.url="https://github.com/huan/docker-wechat" \
org.opencontainers.image.vendor="Huan LI (李卓桓)"