Using /persistent now for persistent data volume; changed image tags slightly

This commit is contained in:
William Miceli
2024-02-23 18:19:37 -05:00
parent 48f55cd86c
commit 4c56c84296
3 changed files with 22 additions and 16 deletions

View File

@@ -23,6 +23,11 @@ ENV LANGUAGE 'en_US:en'
# Create user for SteamCMD
RUN useradd -m steam
# Setup Directory for Persistent Data
RUN mkdir -p /home/steam/.config/Epic/FactoryGame/Saved/SaveGames /persistent && \
ln -s /persistent /home/steam/.config/Epic/FactoryGame/Saved/SaveGames && \
chown -R steam /persistent
# Switch to Steam user
USER steam
WORKDIR /home/steam
@@ -38,7 +43,7 @@ RUN steamcmd +force_install_dir /home/steam/satisfactory_server +login anonymous
EXPOSE 7777/udp 15000/udp 15777/udp
# Persistent data volume for the server
VOLUME ["/home/steam/.config/Epic/FactoryGame/Saved"]
VOLUME ["/persistent"]
# Start command for the server
CMD ["/home/steam/satisfactory_server/FactoryServer.sh"]
@@ -46,5 +51,5 @@ CMD ["/home/steam/satisfactory_server/FactoryServer.sh"]
# Labels
LABEL org.opencontainers.image.authors="William Miceli; https://github.com/WilliamMiceli; https://williammiceli.me"
LABEL org.opencontainers.image.source=https://github.com/WilliamMiceli/Docker_Satisfactory-Server
LABEL org.opencontainers.image.revision=${DRONE_COMMIT_SHA}
LABEL org.opencontainers.image.created=${DRONE_BUILD_STARTED}
LABEL org.opencontainers.image.revision=$${DRONE_COMMIT_SHA}
LABEL org.opencontainers.image.created=$${DRONE_BUILD_STARTED}