Port Dockerfile from monorepo

This commit is contained in:
paul 2020-08-15 04:03:28 +02:00
commit 5898c20eaa
2 changed files with 41 additions and 0 deletions

21
Dockerfile Normal file
View file

@ -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

20
README.md Normal file
View file

@ -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
```