-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathDockerfile
32 lines (27 loc) · 1.02 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
FROM bestwu/wine:i386
LABEL maintainer='Peter Wu <[email protected]>'
RUN apt-get update && \
apt-get install -y --no-install-recommends procps deepin.com.qq.office dbus-x11 && \
apt-get -y autoremove --purge && apt-get autoclean -y && apt-get clean -y && \
find /var/lib/apt/lists -type f -delete && \
find /var/cache -type f -delete && \
find /var/log -type f -delete && \
find /usr/share/doc -type f -delete && \
find /usr/share/man -type f -delete
ENV APP=TIM \
AUDIO_GID=63 \
VIDEO_GID=39 \
GID=1000 \
UID=1000
RUN groupadd -o -g $GID qq && \
groupmod -o -g $AUDIO_GID audio && \
groupmod -o -g $VIDEO_GID video && \
useradd -d "/home/qq" -m -o -u $UID -g qq -G audio,video qq && \
mkdir /TencentFiles && \
chown -R qq:qq /TencentFiles && \
ln -s "/TencentFiles" "/home/qq/Tencent Files" && \
sed -i 's/TIM.exe" &/TIM.exe"/g' "/opt/deepinwine/tools/run.sh"
VOLUME ["/TencentFiles"]
ADD entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]