2018-09-19 21:16:51 +02:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
|
|
|
|
EXPOSE 27015/udp 27015/tcp
|
|
|
|
|
|
|
|
ENV STEAM_PATH="/home/steam" \
|
|
|
|
SERVER_PATH="/home/steam/server" \
|
|
|
|
GROUP_ID=10000 \
|
|
|
|
USER_ID=10000 \
|
2018-09-22 21:05:00 +02:00
|
|
|
DOCKER_USER=steam
|
2018-09-19 21:16:51 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["./home/entrypoint.sh"]
|
|
|
|
|
2018-09-22 21:05:00 +02:00
|
|
|
COPY ["entrypoint.sh", "/home/"]
|
2018-09-19 21:16:51 +02:00
|
|
|
|
|
|
|
# removed dep. lib32gcc1 libtcmalloc-minimal4:i386 gdb
|
|
|
|
RUN dpkg --add-architecture i386 && \
|
2018-09-19 21:20:55 +02:00
|
|
|
apt-get update -y && \
|
2018-09-22 21:07:25 +02:00
|
|
|
apt-get install -y wget tar gzip ca-certificates lib32gcc1 lib32stdc++6 lib32ncurses5 lib32z1 \
|
2018-09-22 21:05:00 +02:00
|
|
|
\
|
2018-09-19 21:16:51 +02:00
|
|
|
groupadd -g $GROUP_ID $DOCKER_USER && \
|
|
|
|
useradd -d /home/steam/ -g $GROUP_ID -u $USER_ID -m $DOCKER_USER && \
|
|
|
|
chown "$DOCKER_USER:$DOCKER_USER" /home/entrypoint.sh && \
|
2018-09-20 00:24:33 +02:00
|
|
|
mkdir -p "$SERVER_PATH" && \
|
|
|
|
chown -R "$DOCKER_USER:$DOCKER_USER" "$STEAM_PATH" && \
|
2018-09-19 21:16:51 +02:00
|
|
|
chmod a=rx /home/entrypoint.sh && \
|
2018-09-20 10:59:37 +02:00
|
|
|
ulimit -n 2048 && \
|
|
|
|
\
|
2018-09-22 21:00:34 +02:00
|
|
|
locale-gen en_US.UTF-8
|
2018-09-19 21:21:53 +02:00
|
|
|
|
2018-09-20 00:24:33 +02:00
|
|
|
USER "$USER_ID:$GROUP_ID"
|
|
|
|
|
|
|
|
VOLUME "$SERVER_PATH"
|