-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
59 lines (49 loc) · 1.37 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
53
54
55
56
57
58
59
FROM debian:bookworm-slim
RUN echo "Unique string to improperly force a fresh build at docker hub - v1"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
lib32gcc-s1 \
lib32stdc++6 \
wget \
ca-certificates \
rsync \
unzip \
tmux \
jq \
bc \
binutils \
ca-certificates \
util-linux \
python3 \
curl \
wget \
file \
tar \
bzip2 \
gzip \
unzip \
bsdmainutils \
libcurl4 \
libcurl3-gnutls \
libcurl4-gnutls-dev \
wait-for-it \
cron \
sudo \
vim \
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/* \
&& groupadd -r -g 999 warfork && useradd -r -m -g warfork -u 999 warfork
USER warfork
RUN mkdir -p /home/warfork/Steam && \
mkdir -p /home/warfork/server && \
mkdir -p /home/warfork/.steam
WORKDIR /home/warfork/Steam
RUN wget -qO- https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | tar zxf - \
&& /home/warfork/Steam/steamcmd.sh +quit
RUN ln -s /home/warfork/Steam/linux64 /home/warfork/.steam/sdk64 && \
ln -s /home/warfork/Steam/linux32 /home/warfork/.steam/sdk32
COPY entrypoint.sh /usr/local/bin/
COPY entrypointtv.sh /usr/local/bin/
CMD [ "bash", "/usr/local/bin/entrypoint.sh" ]