Update wrapper + backup loop
This commit is contained in:
1 parent
bbf8ed9af7
commit
f92b1c899f
2 files changed
+76
-30
No files matched your search
+10
-3
@@ -16,16 +16,23 @@ RUN apt-get update && \
|
||||
lib32stdc++6 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p ${STEAMCMDDIR} ${VALHEIMDIR} ${BACKUPDIR} && \
|
||||
cd ${STEAMCMDDIR} && \
|
||||
# Create directories and install SteamCMD
|
||||
RUN mkdir -p "${STEAMCMDDIR}" "${VALHEIMDIR}" "${BACKUPDIR}" && \
|
||||
cd "${STEAMCMDDIR}" && \
|
||||
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz && \
|
||||
tar -xzf steamcmd_linux.tar.gz && rm steamcmd_linux.tar.gz
|
||||
|
||||
# Set working directory BEFORE copying scripts
|
||||
WORKDIR ${VALHEIMDIR}
|
||||
|
||||
# Copy scripts
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY backup.sh /backup.sh
|
||||
RUN chmod +x /entrypoint.sh /backup.sh
|
||||
|
||||
WORKDIR ${VALHEIMDIR}
|
||||
# Copy managed wrapper into the correct directory
|
||||
COPY start_server_managed.sh ./start_server_managed.sh
|
||||
RUN chmod +x ./start_server_managed.sh
|
||||
|
||||
EXPOSE 2456/udp 2457/udp 2458/udp
|
||||
|
||||
|
||||
Reference in new issue
Block a user