-
Notifications
You must be signed in to change notification settings - Fork 74
/
Dockerfile
45 lines (32 loc) · 1020 Bytes
/
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
42
43
44
45
FROM debian:bullseye-20240211-slim
USER root
RUN apt-get update --fix-missing \
&& apt-get install -y --no-install-recommends \
sudo \
dnsutils \
curl \
git-all \
ca-certificates=20210119 \
lib32z1=1:1.2.11.dfsg-2+deb11u2 \
wget=1.21-1+deb11u1 \
locales \
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& dpkg-reconfigure --frontend=noninteractive locales \
&& rm -rf /var/lib/apt/lists/*
RUN addgroup steam \
&& useradd -g steam steam \
&& usermod -aG sudo steam
ENV TICKRATE=""
ENV MAXPLAYERS=""
ENV API_KEY=""
ENV STEAM_ACCOUNT=""
RUN echo "steam ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/steam \
&& chmod 0440 /etc/sudoers.d/steam
ENV HOME="/home/steam/cs2/"
RUN mkdir -p $HOME && \
chown -R steam:steam $HOME
ENV SRC_DIR="/home/cs2-modded-server"
WORKDIR $SRC_DIR
COPY . $SRC_DIR
USER steam
CMD [ "sudo", "-E", "bash", "/home/cs2-modded-server/install_docker.sh" ]