-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (31 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
42 lines (31 loc) · 1.04 KB
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
FROM scottyhardy/docker-wine:stable-8.0.2
###############################################
MAINTAINER James Chan <james@sctmes.com>
EXPOSE 8080
ENV WINEARCH=win32 \
WINEPREFIX=/wine32 \
XVFB_SCREEN=0 \
XVFB_RESOLUTION="320x240x8" \
DISPLAY=":95" \
DEBIAN_FRONTEND=noninteractive
WORKDIR /wine32
RUN apt-get update && \
apt-get install -y xvfb x11-utils && \
mkdir /tmp/.X11-unix && \
chmod 1777 /tmp/.X11-unix && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get remove -y python3-crypto
COPY bash/auto_xvfb.sh /usr/bin/auto_xvfb
RUN mv /bin/sh /bin/sh.old && \
ln -s /bin/bash /bin/sh && \
bash /usr/bin/auto_xvfb && \
winetricks unattended win8 nocrashdialog msxml3 dotnet46
COPY libs/ /wine32/drive_c/libs
COPY bin/ /wine32/drive_c/bin
COPY bash/docker_entrypoint.sh /usr/bin/entrypoint
RUN cp /wine32/drive_c/libs/tini/tini /tini && \
chmod +x /tini && \
chmod +x /usr/bin/entrypoint
ENTRYPOINT ["/tini", "--", "/usr/bin/entrypoint"]
CMD ["--urls", "http://0.0.0.0:8080"]