-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
53 lines (39 loc) · 1.27 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-12-steamcmd-ubuntu-18.04
LABEL maintainer="Didstopia <[email protected]>"
# Fixes apt-get warnings
ARG DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libsdl2-2.0-0:i386 \
net-tools && \
rm -rf /var/lib/apt/lists/*
# Create and set the steamcmd folder as a volume
RUN mkdir -p /steamcmd/stationeers
# Add the steamcmd installation script
ADD install.txt /app/install.txt
# Copy the startup script
ADD start_stationeers.sh /app/start.sh
# Set the current working directory
WORKDIR /
# Setup default environment variables for the server
ENV STATIONEERS_SERVER_STARTUP_ARGUMENTS "-autostart -nographics -batchmode"
ENV STATIONEERS_SERVER_NAME "A Docker Server"
ENV STATIONEERS_WORLD_NAME "docker"
ENV STATIONEERS_SERVER_SAVE_INTERVAL "300"
ENV STATIONEERS_GAME_PORT "27500"
ENV STATIONEERS_QUERY_PORT "27015"
ENV STATIONEERS_SERVER_PASSWORD ""
# Run as a non-root user by default
ENV PGID 1000
ENV PUID 1000
# Expose necessary ports
EXPOSE 27500/tcp
EXPOSE 27500/udp
EXPOSE 27015/udp
# Define directories to take ownership of
ENV CHOWN_DIRS "/app,/steamcmd"
# Expose the volumes
# VOLUME ["/steamcmd/stationeers"]
# Start the server
CMD [ "bash", "/app/start.sh"]