Barotrauma dedicated server in an ubuntu 20 based Docker container
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=20.04 |
| ADD file:f9ee450324e6ff2c946bc9aae5cf7e35e240dbd387d8b9f5ee1ed5b8434b9894 in / |
| CMD ["/bin/bash"] |
| ENV USER=root |
| ENV HOME=/root |
| WORKDIR /root |
| SHELL [/bin/bash -o pipefail -c] |
| RUN /bin/bash -o pipefail -c echo steam steam/question select "I AGREE" | debconf-set-selections && echo steam steam/license note '' | debconf-set-selections # buildkit |
| ARG DEBIAN_FRONTEND=noninteractive |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/bash -o pipefail -c dpkg --add-architecture i386 && apt-get update -y && apt-get install -y --no-install-recommends ca-certificates locales steamcmd && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/bash -o pipefail -c locale-gen en_US.UTF-8 # buildkit |
| ENV LANG=en_US.UTF-8 |
| ENV LANGUAGE=en_US:en |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/bash -o pipefail -c ln -s /usr/games/steamcmd /usr/bin/steamcmd # buildkit |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/bash -o pipefail -c steamcmd +quit # buildkit |
| RUN |1 DEBIAN_FRONTEND=noninteractive /bin/bash -o pipefail -c ln -s $HOME/.steam/steamcmd/linux32 $HOME/.steam/sdk32 && ln -s $HOME/.steam/steamcmd/linux64 $HOME/.steam/sdk64 && ln -s $HOME/.steam/sdk32/steamclient.so $HOME/.steam/sdk32/steamservice.so && ln -s $HOME/.steam/sdk64/steamclient.so $HOME/.steam/sdk64/steamservice.so # buildkit |
| ENTRYPOINT ["steamcmd"] |
| CMD ["+help" "+quit"] |
| ENV HOME=/home/baro |
| EXPOSE [27015/udp 27016/udp] |
| RUN /bin/bash -o pipefail -c useradd -m baro # buildkit |
| VOLUME [/home/baro/.local/share/Daedalic Entertainment GmbH/Barotrauma] |
| VOLUME [/server] |
| WORKDIR /server |
| RUN /bin/bash -o pipefail -c mkdir -p "/home/baro/.local/share/Daedalic Entertainment GmbH/Barotrauma" && chown -R baro:baro /server /home/baro # buildkit |
| RUN /bin/bash -o pipefail -c apt update && apt install --no-install-recommends --no-install-suggests -y iproute2 && apt clean && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/bash -o pipefail -c mkdir /home/baro/.steam && chown baro:baro /home/baro/.steam && chmod 777 /home/baro/.steam # buildkit |
| COPY --chown=baro:baro --chmod=755 splash.txt entrypoint.sh / # buildkit |
| USER baro |
| HEALTHCHECK {Test:[CMD-SHELL if [ $(ss -l | grep -c LISTEN.*27015) == "0" ] ; then exit 1; fi] Interval:10s Timeout:0s StartPeriod:10s StartInterval:0s Retries:3} |
| ENTRYPOINT ["/entrypoint.sh"] |
| Key |
Value |
| org.opencontainers.image.created |
2026-07-01T00:01:30.409Z |
| org.opencontainers.image.description |
Barotrauma dedicated server in an ubuntu 20 based Docker container |
| org.opencontainers.image.licenses |
|
| org.opencontainers.image.ref.name |
ubuntu |
| org.opencontainers.image.revision |
c386759816d97625ee784b84f164fd234aa725cc |
| org.opencontainers.image.source |
https://code.ggrainger.uk/ggrainger/Barotrauma-Docker |
| org.opencontainers.image.title |
Barotrauma-Docker |
| org.opencontainers.image.url |
https://code.ggrainger.uk/ggrainger/Barotrauma-Docker |
| org.opencontainers.image.version |
latest |