prophunt-garrysmod/Dockerfile

31 lines
897 B
Docker
Raw Normal View History

2018-09-25 11:01:59 +02:00
FROM ubuntu:16.04
2018-09-23 10:13:38 +02:00
EXPOSE 27015/udp 27015/tcp
ENV STEAM_PATH="/home/steam" \
SERVER_PATH="/home/steam/server" \
GROUP_ID=10000 \
USER_ID=10000 \
2018-09-25 12:09:10 +02:00
DOCKER_USER=steam \
\
DEBIAN_FRONTEND="noninteractive"
2018-09-23 10:13:38 +02:00
ENTRYPOINT ["./home/entrypoint.sh"]
2018-09-25 11:01:59 +02:00
CMD ["-game", "garrysmod", "+gamemode", "sandbox", "+map", "gm_flatgrass"]
2018-09-23 10:13:38 +02:00
COPY ["entrypoint.sh", "/home/"]
2018-09-25 11:01:59 +02:00
# removed dep. lib32gcc1 libtcmalloc-minimal4:i386 gdb libreadline5
2018-09-23 10:13:38 +02:00
RUN dpkg --add-architecture i386 && \
2018-09-25 12:09:10 +02:00
apt-get update -y && \
apt-get install -y mailutils postfix curl wget file bzip2 gzip unzip bsdmainutils python util-linux ca-certificates binutils bc jq tmux lib32gcc1 libstdc++6 libstdc++6:i386 lib32tinfo5 && \
locales \
\
2018-09-23 10:13:38 +02:00
chmod a=rx /home/entrypoint.sh && \
\
2018-09-25 12:09:10 +02:00
locale-gen en_US.UTF-8 && \
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh gmodserver
2018-09-23 10:13:38 +02:00
2018-09-23 11:26:47 +02:00
USER "root:root"
2018-09-23 10:13:38 +02:00
VOLUME "$SERVER_PATH"