1 Star 0 Fork 26

Tony / docker-wechat

forked from Huan / docker-wechat 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
Huan 提交于 2020-03-13 10:54 . restore 121 for the latest image
FROM zixia/wine:5.0
USER root
RUN apt update && apt install -y \
pev \
&& apt-get autoremove -y \
&& apt-get clean \
&& chown user /home \
&& rm -fr /tmp/*
USER user
ARG HOME_URL=https://github.com/huan/docker-wechat/releases/download/v0.1/home.2.8.0.121.tgz
RUN curl -sL "$HOME_URL" | tar zxf - \
&& echo 'Artifacts Downloaded'
ARG WECHAT_DIR='/home/user/.wine/drive_c/Program Files/Tencent/WeChat'
RUN cd "$WECHAT_DIR" \
&& peres -v WeChatWin.dll | awk '{print $3}' > /home/VERSION.WeChat \
&& echo 'WeChat VERSION generated'
ENV \
LANG=zh_CN.UTF-8 \
LC_ALL=zh_CN.UTF-8
VOLUME [\
"/home/user/WeChat Files", \
"/home/user/.wine/drive_c/users/user/Application Data" \
]
COPY container_root/ /
COPY [A-Z]* /
COPY VERSION /VERSION.docker-wechat
RUN wine regedit.exe /s /home/wechat-install.reg \
&& wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat' \
&& echo 'Regedit Initialized'
# FIXME: reg set success or not ???
RUN wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat' || echo 'Graceful FAIL. REG NOT FOUND'
ENTRYPOINT [ "/entrypoint.sh" ]
LABEL \
org.opencontainers.image.authors="Huan LI (李卓桓) <zixia@zixia.net>" \
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="git@github.com: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 (李卓桓)"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/iamsjy/docker-wechat.git
git@gitee.com:iamsjy/docker-wechat.git
iamsjy
docker-wechat
docker-wechat
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891