-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
53 lines (39 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM didstopia/base:nodejs-14-steamcmd-ubuntu-20.04
LABEL maintainer="Didstopia <[email protected]>"
# Fix apt-get warnings
ARG DEBIAN_FRONTEND=noninteractive
# Create the volume directories
RUN mkdir -p /steamcmd/satisfactory
# Add the steamcmd installation script
ADD install.txt /app/install.txt
# Copy the satisfactory startup script
ADD start.sh /app/start.sh
# Copy extra files
COPY README.md LICENSE.md /app/
# Set the current working directory
WORKDIR /
# Fix permissions
RUN chown -R 1000:1000 \
/steamcmd \
/app
# Run as a non-root user by default
ENV PGID 1000
ENV PUID 1000
# Expose necessary ports
EXPOSE 7777/udp
EXPOSE 15000/udp
EXPOSE 15777/udp
# Setup default environment variables for the server
ENV SATISFACTORY_SERVER_STARTUP_ARGUMENTS "FactoryGame -log -NoSteamClient -unattended"
ENV SATISFACTORY_BRANCH "experimental"
ENV SATISFACTORY_START_MODE "0"
ENV SATISFACTORY_MULTIHOME "0.0.0.0"
ENV SATISFACTORY_SERVER_QUERY_PORT "15777"
ENV SATISFACTORY_BEACON_PORT "15000"
ENV SATISFACTORY_LISTEN_PORT "7777"
# Define directories to take ownership of
ENV CHOWN_DIRS "/app,/steamcmd"
# Expose the volumes
VOLUME [ "/steamcmd/satisfactory", "/app/.config" ]
# Start the server
CMD [ "bash", "/app/start.sh"]