-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (27 loc) · 1.04 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
FROM steamcmd/steamcmd:ubuntu
LABEL authors="Giovanni De Giorgio"
RUN useradd -ms /bin/bash steam
RUN mkdir -p /home/steam
RUN apt update && apt upgrade -y
# Install deps
RUN dpkg --add-architecture i386 && \
mkdir -pm755 /etc/apt/keyrings && \
apt install wget -y &&\
apt install xvfb -y &&\
apt install libatomic1 libpulse-dev libpulse0 -y
# Install wine
RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
RUN apt update
RUN apt install --assume-yes --install-recommends winehq-stable
ENV WINEARCH=win64
# Copy files
RUN mkdir -p /srv/sons-of-the-docker/config
RUN mkdir -p /opt/scripts/sons-of-the-docker/
ADD scripts /opt/scripts/sons-of-the-docker/
# Install game
ADD config /srv/sons-of-the-docker/config
WORKDIR /srv/sons-of-the-docker
RUN /opt/scripts/sons-of-the-docker/install.sh
EXPOSE 8766 27016 9700
ENTRYPOINT ["bash", "/opt/scripts/sons-of-the-docker/start.sh"]