-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (45 loc) · 1.4 KB
/
Dockerfile
File metadata and controls
57 lines (45 loc) · 1.4 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM ubuntu:20.04
## add container user
RUN useradd -m -d /home/container -s /bin/bash container
RUN ln -s /home/container/ /nonexistent
ENV USER=container HOME=/home/container
# Install wget
RUN apt-get update
RUN apt-get install -y wget
# Add 32-bit architecture
RUN dpkg --add-architecture i386
RUN apt-get update
# Install Wine
RUN apt-get install -y software-properties-common gnupg2
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key
RUN apt-key add winehq.key
RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
RUN apt-get install -y winehq-devel winbind
# Turn off Fixme warnings
ENV WINEDEBUG=fixme-all
# Setup a Wine prefix
RUN chown -R root:root /home/container
ENV HOME=/home/container
ENV WINEPREFIX=/home/container/.wine
ENV WINEARCH=win64
ENV DISPLAY=:0
ENV DISPLAY_WIDTH=1024
ENV DISPLAY_HEIGHT=768
ENV DISPLAY_DEPTH=16
ENV AUTO_UPDATE=1
ENV XVFB=1
RUN winecfg
# Install Winetricks
RUN apt-get install -y cabextract
RUN wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
RUN chmod +x winetricks
RUN cp winetricks /usr/local/bin
# Install .NET Framework 4.5.2
RUN wineboot -u && winetricks -q dotnet452
# Install SteamCMD dependency
RUN apt install -y lib32gcc1
COPY ./entrypoint.sh /home/entrypoint.sh
RUN chown container:container /home/entrypoint.sh
USER container
WORKDIR /home/container
CMD ["/bin/bash", "/home/entrypoint.sh"]