Skip to content

Commit 1b2c79e

Browse files
authored
Optimizations (#9)
* reduce layers * mark as shared content This will avoid issues for users running SElinux systems like RHEL. Should not have any impact on Debian-like systems
1 parent d852d66 commit 1b2c79e

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ WORKDIR /opt
33

44
# system stuff
55
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
6-
RUN apt-get update && apt-get upgrade -y
7-
RUN apt-get install -y locales
6+
RUN apt-get update && apt-get upgrade -y && apt-get install -y locales
87
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
8+
99
ENV LANG en_US.UTF-8
1010
ENV LANGUAGE en_US:en
1111
ENV LC_ALL en_US.UTF-8
@@ -14,9 +14,7 @@ ENV LC_ALL en_US.UTF-8
1414
RUN apt-get install -y wget unzip ca-certificates xvfb xauth x11-utils software-properties-common gnupg
1515
RUN wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
1616
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
17-
RUN dpkg --add-architecture i386
18-
RUN apt-get update
19-
RUN apt-get install -y --install-recommends winbind winehq-stable
17+
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/*
2018

2119
ENV WINEDEBUG -all
2220
ENV WINEARCH win64
@@ -30,10 +28,6 @@ RUN wineboot --init
3028
COPY start-server.sh /opt/start-server.sh
3129
RUN chmod +x /opt/start-server.sh
3230

33-
# cleanup
34-
RUN apt-get clean
35-
RUN rm -rf /var/lib/apt/lists/*
36-
3731
EXPOSE 27020/udp
3832
EXPOSE 27015/udp
3933
EXPOSE 27015/tcp

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ services:
1515
- "27015:27015/udp"
1616
- "27015:27015/tcp"
1717
volumes:
18-
- ./scumserver-data:/opt/scumserver
19-
- ./steamcmd:/opt/steamcmd
18+
- ./scumserver-data:/opt/scumserver:z
19+
- ./steamcmd:/opt/steamcmd:z
2020
restart: unless-stopped

0 commit comments

Comments
 (0)