56 lines
1.1 KiB
Docker
56 lines
1.1 KiB
Docker
|
FROM ubuntu:16.04
|
||
|
|
||
|
MAINTAINER didstopia
|
||
|
|
||
|
# Setup the locales
|
||
|
RUN locale-gen en_US.UTF-8
|
||
|
ENV LANG en_US.UTF-8
|
||
|
ENV LANGUAGE en_US:en
|
||
|
ENV LC_ALL en_US.UTF-8
|
||
|
|
||
|
# Fixes apt-get warnings
|
||
|
ENV DEBIAN_FRONTEND noninteractive
|
||
|
|
||
|
# Run a quick apt-get update/upgrade
|
||
|
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get autoremove -y
|
||
|
|
||
|
# Install dependencies, mainly for SteamCMD
|
||
|
RUN apt-get install -y \
|
||
|
ca-certificates \
|
||
|
software-properties-common \
|
||
|
python-software-properties \
|
||
|
lib32gcc1 \
|
||
|
libstdc++6 \
|
||
|
curl \
|
||
|
wget \
|
||
|
libvorbisfile3
|
||
|
|
||
|
# Run as root
|
||
|
USER root
|
||
|
|
||
|
# 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
|
||
|
|
||
|
# 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 ""
|
||
|
|
||
|
# Cleanup
|
||
|
ENV DEBIAN_FRONTEND newt
|
||
|
|
||
|
# Start the server
|
||
|
ENTRYPOINT ["./start.sh"]
|