21 lines
425 B
Docker
21 lines
425 B
Docker
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
|
|
|