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 && \
|
2020-10-21 23:35:26 +00:00
|
|
|
# Configuring sources
|
|
|
|
echo "deb http://deb.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list && \
|
|
|
|
echo "deb http://security.debian.org/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
echo "deb http://deb.debian.org/debian buster-updates main contrib non-free" >> /etc/apt/sources.list && \
|
|
|
|
echo "deb http://deb.debian.org/debian buster-backports main contrib non-free" >> /etc/apt/sources.list && \
|
2019-06-19 20:16:53 +00:00
|
|
|
|
|
|
|
# Updating and upgrading
|
|
|
|
apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
2020-10-21 23:35:26 +00:00
|
|
|
apt-get install -y gpg-agent && \
|
|
|
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A2166B8DE8BDC3367D1901C11EE2FF37CA8DA16B && \
|
|
|
|
apt-get update && \
|
2019-06-19 20:16:53 +00:00
|
|
|
|
|
|
|
apt-get install -y --no-install-recommends software-properties-common && \
|
2020-10-21 23:35:26 +00:00
|
|
|
add-apt-repository ppa:apt-fast/stable && \
|
|
|
|
apt-get update &&\
|
|
|
|
apt-get -y install apt-fast && \
|
|
|
|
apt-fast install -y --no-install-recommends unzip wget gpg-agent apt-transport-https && \
|
2019-06-19 20:16:53 +00:00
|
|
|
|
|
|
|
# Installation of wine, winetricks and temporary xvfb
|
2020-10-21 23:35:26 +00:00
|
|
|
apt-fast install -y --install-recommends wine && \
|
|
|
|
apt-fast install -y --no-install-recommends winetricks xvfb winbind xauth && \
|
2019-06-19 20:16:53 +00:00
|
|
|
|
|
|
|
# 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' && \
|
2020-10-21 23:35:26 +00:00
|
|
|
|
2019-06-19 20:16:53 +00:00
|
|
|
# Installation of git, build tools, and sigmap
|
2020-10-21 23:35:26 +00:00
|
|
|
apt-fast install -y --no-install-recommends build-essential git-core && \
|
2019-06-19 20:16:53 +00:00
|
|
|
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
|
2020-10-21 23:35:26 +00:00
|
|
|
apt-fast autoremove -y --purge build-essential git-core && \
|
|
|
|
apt-fast autoremove -y --purge software-properties-common && \
|
|
|
|
apt-fast autoremove -y --purge wget gpg-agent apt-transport-https && \
|
|
|
|
apt-fast autoremove -y --purge xvfb && \
|
|
|
|
apt-fast autoremove -y --purge && \
|
|
|
|
apt-fast clean -y && \
|
2019-06-19 20:16:53 +00:00
|
|
|
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 [""]
|