starbound-server/Dockerfile

54 lines
1.1 KiB
Docker
Raw Normal View History

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
# 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/*
# Create the volume directories
# 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
ADD start.sh /app/start.sh
2016-08-01 08:09:50 +00:00
# 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
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 ""
ENV SKIP_STEAMCMD ""
# Define directories to take ownership of
ENV CHOWN_DIRS "/app,/steamcmd"
# Expose the volumes
VOLUME [ "/app/steam", "/steamcmd/starbound" ]
2016-08-01 08:09:50 +00:00
# Start the server
CMD [ "bash", "/app/start.sh"]