-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
41 lines (35 loc) · 1.48 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 debian:bookworm-slim
USER root
ARG TINI_VERSION=v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod 0755 /usr/bin/tini
# enable non-free repo and i386 arch for steamcmd
# apt-add-repository workaround from
# https://stackoverflow.com/questions/76688863/apt-add-repository-doesnt-work-on-debian-12
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && \
apt-get install --no-install-recommends -y \
software-properties-common && \
add-apt-repository \
-U http://deb.debian.org/debian \
-c non-free-firmware \
-c non-free && \
add-apt-repository \
-U http://deb.debian.org/debian \
-c non-free-firmware \
-c non-free && \
dpkg --add-architecture i386 && \
apt-get clean
# pre-accept the steam license agreement
# see https://askubuntu.com/questions/506909/how-can-i-accept-the-lience-agreement-for-steam-prior-to-apt-get-install/1017487#1017487
RUN echo steam steam/question select "I AGREE" | debconf-set-selections && \
echo steam steam/license note '' | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && \
apt-get install --no-install-recommends -y \
wine wine32 wine64 xvfb xauth steamcmd && \
apt-get clean
RUN ln -s /usr/games/steamcmd /usr/bin/steamcmd
COPY launch_server.sh /usr/bin/launch_server
RUN chmod 0755 /usr/bin/launch_server
ENTRYPOINT "/usr/bin/launch_server"