-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 1.66 KB
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 1.66 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
FROM debian:bookworm-slim
LABEL org.opencontainers.image.title="SCUM Server"
LABEL org.opencontainers.image.description="Docker image for running a SCUM game server with Wine and SteamCMD on Debian Bookworm"
LABEL org.opencontainers.image.version="2.2.0"
LABEL org.opencontainers.image.authors="EvilOlaf"
LABEL org.opencontainers.image.url="https://github.com/EvilOlaf/scum"
LABEL org.opencontainers.image.source="https://github.com/EvilOlaf/scum"
LABEL org.opencontainers.image.base.name="debian:bookworm-slim"
WORKDIR /opt
# system stuff
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update && apt-get upgrade -y && apt-get install -y locales
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
# wine, steamcmd
RUN apt-get install -y wget unzip ca-certificates xvfb xauth x11-utils software-properties-common gnupg procps
RUN wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
RUN dpkg --add-architecture i386 && apt-get update && apt-get install -y --install-recommends winbind winehq-stable && apt-get clean && rm -rf /var/lib/apt/lists/*
ENV WINEDEBUG=-all
ENV WINEARCH=win64
ENV WINEPREFIX=/opt/wine64
ENV XDG_RUNTIME_DIR=/tmp
ENV PATH=/opt/steamcmd:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN wineboot --init
# scum server run script
COPY start-server.sh /opt/start-server.sh
RUN chmod +x /opt/start-server.sh
ENV GSLT_TOKEN=
CMD ["/opt/start-server.sh"]