-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (42 loc) · 1.54 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
# Pull ubuntu image
FROM ubuntu:20.04
# Set environment variables
# WINEDLLOVERRIDES is required so wine doesn't ask any questions during setup
ENV WINEPREFIX="/wine" \
DISPLAY=:1 \
DEBIAN_FRONTEND=noninteractive \
PUID=0 \
PGID=0
# Install Wine
RUN apt-get update && \
apt-get install -y curl \
software-properties-common \
apt-transport-https && \
dpkg --add-architecture i386 && \
curl -fsSL https://dl.winehq.org/wine-builds/winehq.key | apt-key add - && \
apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' && \
apt-get update && \
apt-get install -y --install-recommends winehq-stable=4.0.4~focal \
wine-stable=4.0.4~focal \
wine-stable-amd64=4.0.4~focal \
wine-stable-i386=4.0.4~focal \
xvfb \
winbind && \
apt-get autoremove -y curl \
software-properties-common \
apt-transport-https && \
rm -rf /var/lib/apt/lists/* && \
rm -rf .cache/
# Initialize Wine
RUN Xvfb :1 -screen 0 320x240x24 & \
WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -u
RUN rm /tmp/.X1-lock
# Disable Wine debugging by default
ENV WINEDEBUG=-all
# Copy our entrypoint
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# Set up workdir/volumes
WORKDIR /app
VOLUME /app