FROM cm2network/steamcmd AS build LABEL maintainer="ntr@megastructure.games" EXPOSE 27015/tcp \ 27015/udp \ 27020/udp USER root RUN apt-get update RUN apt-get install -y \ wget \ ca-certificates \ zlib1g \ lib32gcc-s1 \ libncurses5 \ libbz2-1.0 \ libtinfo5 \ libcurl3-gnutls \ rcon ENV CSSDS="/home/steam/cssds" ENV TF2DS="/home/steam/tf2ds" ENV STEAMCMD="/home/steam/steamcmd" ENV ETC="/home/steam/etc" # ensure gamedirs exist and have been chowned to steam # before they potentially get setup as docker volumes # which would otherwise cause them to be owned by root RUN mkdir -p "$CSSDS" "$TF2DS" "$STEAMCMD" "$ETC" RUN chown -R steam:steam /home/steam FROM build AS steam USER steam WORKDIR /home/steam ENV METAMOD_VERSION 1.12 ENV SOURCEMOD_VERSION 1.12 COPY etc /home/steam/etc CMD ["bash", "./etc/run.sh"]