-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
44 lines (31 loc) · 888 Bytes
/
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
FROM didstopia/base:steamcmd-ubuntu-20.04
LABEL maintainer="Didstopia <support@didstopia.com>"
# Fixes apt-get warnings
ARG DEBIAN_FRONTEND=noninteractive
# Create the volume directories
RUN mkdir -p /steamcmd/starbound
# Add the steamcmd installation script
ADD install.txt /app/install.txt
# Copy the startup script
ADD start.sh /app/start.sh
# 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 21025/tcp
# Setup default environment variables for the server
ENV STEAM_USERNAME ""
ENV STEAM_PASSWORD ""
ENV SKIP_STEAMCMD ""
# Define directories to take ownership of
ENV CHOWN_DIRS "/app,/steamcmd"
# Expose the volumes
VOLUME [ "/app.steam", "/steamcmd/starbound" ]
# Start the server
CMD [ "bash", "/app/start.sh"]