2021-11-09 10:52:39 +00:00
|
|
|
FROM didstopia/base:steamcmd-ubuntu-20.04
|
2016-08-01 08:09:50 +00:00
|
|
|
|
2019-06-20 01:06:59 +00:00
|
|
|
LABEL maintainer="Ezekiel Grave <gitea@reg.ici.de.com>"
|
2016-08-01 08:09:50 +00:00
|
|
|
|
2017-04-22 21:24:17 +00:00
|
|
|
# Fixes apt-get warnings
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2019-06-19 14:40:55 +00:00
|
|
|
# Install dependencies
|
|
|
|
RUN apt-get update && \
|
2019-06-20 01:06:59 +00:00
|
|
|
apt-get install -y \
|
|
|
|
--no-install-recommends net-tools && \
|
|
|
|
apt-get clean && \
|
|
|
|
dpkg --clear-avail && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2019-06-19 14:40:55 +00:00
|
|
|
|
2021-11-09 10:52:39 +00:00
|
|
|
# Create the volume directories
|
2019-06-19 14:40:55 +00:00
|
|
|
# Create and set the steamcmd folder as a volume
|
2016-08-01 08:09:50 +00:00
|
|
|
RUN mkdir -p /steamcmd/starbound
|
|
|
|
|
|
|
|
# Add the steamcmd installation script
|
2019-06-20 01:06:59 +00:00
|
|
|
ADD install.cmd /install.cmd
|
2016-08-01 08:09:50 +00:00
|
|
|
|
|
|
|
# Copy the startup script
|
2021-11-09 10:52:39 +00:00
|
|
|
ADD start.sh /app/start.sh
|
2016-08-01 08:09:50 +00:00
|
|
|
|
|
|
|
# Set the current working directory
|
|
|
|
WORKDIR /
|
|
|
|
|
2021-11-09 10:52:39 +00:00
|
|
|
# Fix permissions
|
|
|
|
RUN chown -R 1000:1000 \
|
|
|
|
/steamcmd \
|
|
|
|
/app
|
|
|
|
|
|
|
|
# Run as a non-root user by default
|
|
|
|
ENV PGID 1000
|
|
|
|
ENV PUID 1000
|
|
|
|
|
2016-08-01 08:09:50 +00:00
|
|
|
# Expose necessary ports
|
|
|
|
EXPOSE 21025/tcp
|
|
|
|
|
|
|
|
# Setup default environment variables for the server
|
|
|
|
ENV STEAM_USERNAME ""
|
|
|
|
ENV STEAM_PASSWORD ""
|
2021-11-09 10:52:39 +00:00
|
|
|
ENV SKIP_STEAMCMD ""
|
|
|
|
|
|
|
|
# Define directories to take ownership of
|
|
|
|
ENV CHOWN_DIRS "/app,/steamcmd"
|
|
|
|
|
|
|
|
# Expose the volumes
|
2019-06-19 14:40:55 +00:00
|
|
|
VOLUME [ "/app/steam", "/steamcmd/starbound" ]
|
2016-08-01 08:09:50 +00:00
|
|
|
|
|
|
|
# Start the server
|
2021-11-09 10:52:39 +00:00
|
|
|
CMD [ "bash", "/app/start.sh"]
|