-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (40 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
47 lines (40 loc) · 1.34 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
FROM 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
RUN 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
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
RUN apt-get update
RUN apt-get install -y --install-recommends winbind winehq-stable
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
# cleanup
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
EXPOSE 27020/udp
EXPOSE 27015/udp
EXPOSE 27015/tcp
EXPOSE 7777/udp
EXPOSE 7777/tcp
EXPOSE 7778/udp
EXPOSE 7778/tcp
EXPOSE 7779/udp
EXPOSE 7779/tcp
ENV GSLT_TOKEN=
CMD ["/opt/start-server.sh"]