From e8d983ba1e1bd2b78f2b8817c9f7a1e97c485654 Mon Sep 17 00:00:00 2001 From: Tranko <37229415+thorkseng@users.noreply.github.com> Date: Tue, 4 Jan 2022 11:28:34 +0000 Subject: [PATCH] Create a CMD Minor changes and added the cmd to execut in the startup. This will execute a basic bash script that run the valheim server based on the parameters of a env file. --- valheim.Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/valheim.Dockerfile b/valheim.Dockerfile index 6b932e7..2bfbde6 100644 --- a/valheim.Dockerfile +++ b/valheim.Dockerfile @@ -1,5 +1,7 @@ FROM debian +LABEL maintainer="Tranko" + # Install tools required for the project # Run 'docker build --no-cache .' to udpate dependencies RUN dpkg --add-architecture armhf @@ -29,8 +31,9 @@ RUN make install # Install steamcmd and download the valheim server: WORKDIR /root/steam RUN curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf - -ENV DEBUGGER "/usr/local/bin/box86" +# RUN export DEBUGGER="/usr/local/bin/box86" ENV BOX86_DYNAREC "0" +ENV DEBUGGER "/usr/local/bin/box86" RUN ./steamcmd.sh +@sSteamCmdForcePlatformType linux +login anonymous +force_install_dir /root/valheim_server +app_update 896660 validate +quit ## Box64 installation @@ -41,6 +44,9 @@ RUN cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo RUN make -j4; RUN make install -EXPOSE 2456-2458/udp +EXPOSE 2456-2457/udp -CMD ["/bin/bash"] +WORKDIR /root/ +COPY bootstrap . + +CMD ["/root/bootstrap"]