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.
This commit is contained in:
parent
b278f2422e
commit
e8d983ba1e
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue