Files
Docker_Satisfactory-Server/Dockerfile
William Miceli 48f55cd86c Updated README.md
2025-04-19 22:36:03 -04:00

51 lines
1.7 KiB
Docker

FROM docker.io/library/ubuntu:24.04
# Avoid prompts from apt
ENV DEBIAN_FRONTEND=noninteractive
# Agree to Steam terms prompt (used during steamcmd install)
RUN echo steam steam/question select "I AGREE" | debconf-set-selections && \
echo steam steam/license note '' | debconf-set-selections
# Install SteamCMD
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y --no-install-recommends ca-certificates locales steamcmd && \
ln -s /usr/games/steamcmd /usr/bin/steamcmd && \
apt-get clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
# Add unicode support
RUN locale-gen en_US.UTF-8
ENV LANG 'en_US.UTF-8'
ENV LANGUAGE 'en_US:en'
# Create user for SteamCMD
RUN useradd -m steam
# Switch to Steam user
USER steam
WORKDIR /home/steam
# Install Satisfactory dedicated server
RUN steamcmd +force_install_dir /home/steam/satisfactory_server +login anonymous +app_update 1690800 -beta public validate +quit && \
rm -rf /tmp/* /var/tmp/* /home/steam/.local /home/steam/.steam
# Expose ports:
# - 7777/udp for game traffic
# - 15000/udp for query traffic
# - 15777/udp for Steam traffic
EXPOSE 7777/udp 15000/udp 15777/udp
# Persistent data volume for the server
VOLUME ["/home/steam/.config/Epic/FactoryGame/Saved"]
# Start command for the server
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}