From 5898c20eaa021e5d695f8ec9f6ef83f3c4ef88d6 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 15 Aug 2020 04:03:28 +0200 Subject: [PATCH] Port Dockerfile from monorepo --- Dockerfile | 21 +++++++++++++++++++++ README.md | 20 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d850e8e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM mono:5.4 +EXPOSE 6702 + +ARG DMP=0.3.6.0 + +# add our users and groups first to make sure their IDs get assigned consitently +RUN useradd -d /home/dmp dmp + +RUN apt-get -yqq update && apt-get -y install unzip + +ADD https://d-mp.org/builds/release/v$DMP/DMPServer.zip /home/dmp/DMPServer.zip + +WORKDIR /home/dmp +RUN unzip DMPServer.zip +WORKDIR /home/dmp/DMPServer + +RUN chown dmp:dmp /home/dmp -R +USER dmp + +CMD mono DMPServer.exe + diff --git a/README.md b/README.md new file mode 100644 index 0000000..5716e6c --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +## KSP DarkMP +KSP DarkMP is a multiplayer mod for KSP. This image is the server. + +### Building ksp-darkmp + +``` +docker build -t zombi/ksp-darkmp . +``` + +### Running ksp-darkmp + +``` +docker run -d \ + --name ksp-darkmp \ + -v /data/ksp/:/home/dmp/DMPServer/Config \ + -p 6702:6702 + zombi/ksp-darkmp +``` + +