Port Dockerfile from monorepo
This commit is contained in:
commit
5898c20eaa
2 changed files with 41 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal 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
20
README.md
Normal 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
|
||||
```
|
||||
|
||||
|
Loading…
Reference in a new issue