-
Notifications
You must be signed in to change notification settings - Fork 75
/
Dockerfile
52 lines (35 loc) · 1.23 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
42
43
44
45
46
47
48
49
50
51
52
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
RUN mkdir -p /home/cs2-modded-server
RUN mkdir -p /home/steam/cs2
WORKDIR /home/cs2-modded-server/
RUN chown -R steam:steam /home/steam/cs2
RUN git clone https://github.com/kus/cs2-modded-server
RUN echo cloned repository
RUN mv /home/cs2-modded-server/cs2-modded-server/* /home/cs2-modded-server
RUN rm -rf /home/cs2-modded-server/cs2-modded-server
WORKDIR /home/cs2-modded-server/
USER steam
CMD [ "sudo", "-E", "bash", "/home/cs2-modded-server/install_docker.sh" ]