docker-space-engineers-server/Dockerfile

78 lines
2.8 KiB
Docker
Raw Normal View History

2019-06-19 20:16:53 +00:00
# Space Engineers Server
# Based on original work by webanck
# https://github.com/webanck/docker-wine-steam
# Adapted from work by marjacob
# https://github.com/marjacob/se-server
2020-10-21 21:52:45 +00:00
# Adapted from work done by chipwolf
# https://github.com/ChipWolf/docker-space-engineers-server
2015-10-26 09:52:10 +00:00
2020-10-21 21:51:41 +00:00
FROM debian
2020-10-21 21:52:45 +00:00
MAINTAINER Aidan J Culley <culley.aidan@gmail.com>
2015-10-26 09:52:10 +00:00
# Creating the wine user and setting up dedicated non-root environment.
2015-10-26 11:22:01 +00:00
RUN useradd -u 256 -d /home/wine -m -s /bin/bash wine
2015-10-26 09:52:10 +00:00
ENV HOME /home/wine
WORKDIR /home/wine
2019-06-19 20:16:53 +00:00
# Setting up the wineprefix to force 64 bit architecture.
2015-10-26 09:52:10 +00:00
ENV WINEPREFIX /home/wine/.wine
2019-06-19 20:16:53 +00:00
ENV WINEARCH win64
2015-10-26 09:52:10 +00:00
# Disabling warning messages from wine, comment for debug purpose.
ENV WINEDEBUG -all
# Disable interaction from package installation during the docker image building.
ENV DEBIAN_FRONTEND noninteractive
2019-06-19 20:16:53 +00:00
RUN dpkg --add-architecture i386 && \
# Updating and upgrading
apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends software-properties-common && \
apt-get install -y --no-install-recommends unzip wget gpg-agent apt-transport-https && \
# Installation of wine, winetricks and temporary xvfb
2020-10-21 21:56:14 +00:00
apt-get install -y --install-recommends wine && \
2019-06-19 20:16:53 +00:00
apt-get install -y --no-install-recommends winetricks xvfb && \
# Installation of winbind to stop ntlm error messages
apt-get install -y --no-install-recommends winbind && \
# Installation of winetricks tricks as wine user
su -p -l wine -c winecfg && \
su -p -l wine -c 'xvfb-run -a winetricks -q corefonts' && \
su -p -l wine -c 'xvfb-run -a winetricks -q vcrun2013' && \
su -p -l wine -c 'xvfb-run -a winetricks -q dotnet20' ; \
su -p -l wine -c 'xvfb-run -a winetricks -q dotnet461' ; \
su -p -l wine -c 'xvfb-run -a winetricks -q xna40' && \
su -p -l wine -c 'xvfb-run -a winetricks d3dx9' && \
su -p -l wine -c 'xvfb-run -a winetricks -q directplay' && \
# Installation of git, build tools, and sigmap
apt-get install -y --no-install-recommends build-essential git-core && \
git clone https://github.com/marjacob/sigmap.git && \
(cd sigmap && exec make) && \
install sigmap/bin/sigmap /usr/local/bin/sigmap && \
rm -rf sigmap/ && \
# Cleaning up
apt-get autoremove -y --purge build-essential git-core && \
apt-get autoremove -y --purge software-properties-common && \
apt-get autoremove -y --purge wget gpg-agent apt-transport-https && \
apt-get autoremove -y --purge xvfb && \
apt-get autoremove -y --purge && \
apt-get clean -y && \
rm -rf /home/wine/.cache && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add the dedicated server files
2015-10-26 09:52:10 +00:00
ADD install.sh /install.sh
RUN /install.sh && rm /install.sh
# Launching the server as the wine user.
USER wine
ENTRYPOINT ["/usr/local/bin/sigmap", "-m 15:2", "/usr/local/bin/space-engineers-server", "-noconsole"]
CMD [""]