forked from michael-lawrence/docker-starbound-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 1.03 KB
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
FROM steamcmd/steamcmd:latest
LABEL org.opencontainers.image.authors = "blade1981m <blade1981m@gmail.com>"
LABEL org.opencontainers.image.source = "https://github.com/blade1981m/docker-starbound-server"
VOLUME ["/universe"]
# mods volume exposed in case you need to manually add mods
# mods you are subscribed to in steam are automatically pulled in
VOLUME ["/mods"]
# startup script for container
COPY start.sh /start.sh
# wrapper executable for running steamcmd with 2 factor auth
COPY steamcmd-2fa /steamcmd-2fa
RUN chmod +x /steamcmd-2fa /start.sh
# symlinking universe and mods folder for simpler volume exposing
RUN ln -s /root/.steam/SteamApps/common/Starbound/storage/universe /universe
RUN ln -s /root/.steam/SteamApps/common/Starbound/mods /mods
# starbound server documentation states that both tcp and udp are needed
EXPOSE 21025/tcp
EXPOSE 21025/udp
# this port only needed if you are using RCON features of server
EXPOSE 21026
# steamcmd base image sets entrypoint as steamcmd - this overrides that
ENTRYPOINT ["bash"]
CMD ["/start.sh"]