prophunt-garrysmod/Dockerfile

48 lines
1.4 KiB
Docker
Raw Normal View History

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 \
DOCKER_USER=steam \
\
WORKSHOP_COLLECTION_ID= \
INSTALL_CSS=false \
INSTALL_HL2=false \
INSTALL_HLDM=false \
INSTALL_TF2=false \
\
CSS_PATH="/home/steam/addons/css" \
HL2_PATH="/home/steam/addons/hl2" \
HLDM_PATH="/home/steam/addons/hldm" \
TF2_PATH="/home/steam/addons/tf2" \
\
USE_MY_REPLACER_CONFIG=false
ENTRYPOINT ["./home/entrypoint.sh"]
2018-09-19 23:34:23 +02:00
COPY ["entrypoint.sh", "installAndMountAddons.sh", "forceWorkshopDownload.sh", "experimental.sh", "/home/"]
# removed dep. lib32gcc1 libtcmalloc-minimal4:i386 gdb
RUN dpkg --add-architecture i386 && \
2018-09-19 21:20:55 +02:00
apt-get update -y && \
apt-get install -y wget tar gzip ca-certificates lib32stdc++6 lib32tinfo5 && \
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 && \
mkdir -p "$SERVER_PATH" && \
chown -R "$DOCKER_USER:$DOCKER_USER" "$STEAM_PATH" && \
chmod a=rx /home/entrypoint.sh && \
chmod a=rx /home/installAndMountAddons.sh && \
chmod a=rx /home/forceWorkshopDownload.sh && \
2018-09-19 23:34:23 +02:00
chmod a=rx /home/experimental.sh && \
ulimit -n 2048 && \
\
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' "/etc/locale.gen" && \
./etc/locale.gen
USER "$USER_ID:$GROUP_ID"
VOLUME "$SERVER_PATH"