forked from fdu/docker-battlenet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1.41 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
FROM ubuntu:20.04
ENV USER gamer
ENV UID 1000
ENV GID 1000
ENV DEBIAN_FRONTEND noninteractive
RUN apt update
RUN apt install -y sudo software-properties-common curl
RUN echo '%sudo ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
RUN groupadd --gid $GID $USER
RUN useradd -rm -d /home/$USER -s /bin/bash -g $USER -G sudo -u $UID $USER
# Install wine
RUN curl https://dl.winehq.org/wine-builds/winehq.key > /tmp/winehq.key
RUN apt-key add /tmp/winehq.key
RUN dpkg --add-architecture i386
RUN add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
RUN apt update
RUN apt install -y --install-recommends winehq-staging winetricks zenity
# Pre-install Mono, see versions at https://wiki.winehq.org/Mono
RUN mkdir -p /usr/share/wine/mono/
RUN curl http://dl.winehq.org/wine/wine-mono/6.2.0/wine-mono-6.2.0-x86.msi > /usr/share/wine/mono/wine-mono-6.2.0-x86.msi
# Pre-install Gecko, see versions at https://wiki.winehq.org/Gecko
RUN mkdir -p /usr/share/wine/gecko/
RUN curl http://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86.msi > /usr/share/wine/gecko/wine-gecko-2.47.2-x86.msi
RUN curl http://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86_64.msi > /usr/share/wine/gecko/wine-gecko-2.47.2-x86_64.msi
RUN chmod 777 -R /usr/share/wine
RUN curl 'https://eu.battle.net/download/getInstaller?os=win&installer=Battle.net-Setup.exe' > /tmp/Battle.net-Setup.exe
COPY start.sh /
CMD /start.sh
USER $USER