-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (27 loc) · 804 Bytes
/
Dockerfile
File metadata and controls
32 lines (27 loc) · 804 Bytes
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
FROM debian:bullseye-slim
ENV STEAMCMDDIR="/home/steam/steamcmd" \
STEAMAPPNAME="" \
STEAMAPPID=0 \
STEAMAPPDIR="/home/steam/game-dedicated"
COPY *.sh /usr/local/bin/
RUN set -x \
&& chmod 755 /usr/local/bin/*.sh \
&& sed -i 's@/deb.debian.org/@/mirrors.aliyun.com/@g;s@/security.debian.org/@/mirrors.aliyun.com/@g' /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \
lib32stdc++6 \
lib32z1 \
g++-multilib \
gdb \
wget \
curl \
rsync \
ca-certificates \
&& useradd -u 1000 -m steam \
&& su steam -c "initsteamcmd.sh" \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
WORKDIR $STEAMAPPDIR
VOLUME $STEAMAPPDIR