first usable version

This commit is contained in:
2026-01-28 15:17:29 +01:00
parent 617335e93e
commit 9a2c8f13c5

View File

@@ -1,17 +1,30 @@
FROM ghcr.io/gameservermanagers/steamcmd:latest
#FROM cm2network/steamcmd:steam
FROM docker.io/cm2network/steamcmd:latest
ARG DATA_DIR="/stationeers/game_data"
ARG SAVES_DIR
ARG APP_USER="gamer"
ARG APP_UID=568
ARG APP_DIR="/home/steam/app"
ARG APP_ID=600760
ARG USER_DIR="/stationeers"
# Re-use the entrypoint script of the steamcmd image and map it to a sensible command s it can be used internally
#RUN ln -s /docker-entrypoint.sh /steamcmd
# Setup local user
USER root
RUN useradd --uid "$APP_UID" --user-group --create-home --home "$APP_DIR" --shell /sbin/nologin "$APP_USER"
#RUN steamcmd +force_install_dir "$DATA_DIR" +login anonymous +app_update 600760 +quit
# Install application and configure access rights
USER "$APP_USER"
RUN /home/steam/steamcmd/steamcmd.sh +force_install_dir "$APP_DIR" +login anonymous +app_update 600760 validate +quit
RUN chown -R "$APP_USER":"$APP_USER" "$APP_DIR"/*
# Link the saves folder to the user mount
RUN ln -sf "$USER_DIR" "$APP_DIR/saves"
# Game port
EXPOSE 27016/udp
# Steam update port
EXPOSE 27015/udp
WORKDIR "$DATA_DIR"
ENTRYPOINT ["echo"]
WORKDIR "$USER_DIR"
ENV PATH="$APP_DIR:$PATH"
ENTRYPOINT ["rocketstation_DedicatedServer.x86_64"]
# User should add their server commands as extra args to the docker run command
# User should mount /stationeers for their writable data folder