starbound-server/Dockerfile

39 lines
886 B
Docker
Raw Normal View History

FROM didstopia/base:nodejs-steamcmd-ubuntu-16.04
2016-08-01 08:09:50 +00:00
MAINTAINER Didstopia <support@didstopia.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 && \
apt-get install -y --no-install-recommends \
net-tools && \
rm -rf /var/lib/apt/lists/*
2016-08-01 08:09:50 +00:00
# Create and set the steamcmd folder as a volume
RUN mkdir -p /steamcmd/starbound
VOLUME ["/steamcmd/starbound"]
# Add the steamcmd installation script
ADD install.txt /install.txt
# Copy the startup script
ADD start_starbound.sh /start.sh
# Copy the default configuration file
ADD starbound_server.default.config /starbound_server.default.config
2016-08-01 08:09:50 +00:00
# Set the current working directory
WORKDIR /
# Expose necessary ports
EXPOSE 21025/tcp
# Setup default environment variables for the server
ENV STEAM_USERNAME ""
ENV STEAM_PASSWORD ""
# Start the server
ENTRYPOINT ["./start.sh"]