surf_megastructure/cssds/cssds.dockerfile
2025-07-31 18:13:22 +10:00

32 lines
725 B
Docker

FROM cm2network/steamcmd:root 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
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"]