Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusraupach committed Jan 7, 2025
1 parent 7a34a17 commit c615ab6
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,28 @@ FROM cm2network/steamcmd

USER root

COPY --chmod=+x entrypoint.sh .

RUN apt-get update && \
apt-get install -y libpulse-dev libatomic1 libc6
apt-get install -y libatomic1 \
libpulse0 \
libpulse-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

USER steam

WORKDIR /home/steam/steamcmd

RUN mkdir /home/steam/valheim-dedicated-server && \
./steamcmd.sh +@sSteamCmdForcePlatformType linux +force_install_dir /home/steam/valheim-dedicated-server +login anonymous +app_update 896660 validate +quit
RUN mkdir -p /home/steam/valheim-dedicated-server && \
./steamcmd.sh +@sSteamCmdForcePlatformType linux \
+app_update 896660 validate \
+force_install_dir /home/steam/valheim-dedicated-server \
+login anonymous \
+quit

WORKDIR /

WORKDIR /home/steam/valheim-dedicated-server
EXPOSE 2456-2458/udp

ENTRYPOINT ["./valheim_server.x86_64", "-password", "password", "-public", "1"]
ENTRYPOINT ["./entrypoint.sh"]

0 comments on commit c615ab6

Please sign in to comment.