forked from LunaMultiplayer/LunaMultiplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_Server
29 lines (20 loc) · 928 Bytes
/
Dockerfile_Server
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#Build this image with: docker build --file Dockerfile_MasterServer -t lmpsrv:latest .
#Delete the image with the command: docker image rm lmpsrv:latest
#Create a container with: docker run -d -p 8800:8800 -p 8900:8900 --name lmpsrv lmpsrv:latest
#Attach to a container with: docker exec -it lmpsrv /bin/ash
#When inside a container, you can dettach with: CONTROL+P+Q
#Check logs with: docker logs -f lmpsrv
#Stop a container with: docker stop lmpsrv
#Start a container with: docker start lmpsrv
#Remove a container with: docker container rm lmpsrv
FROM alpine:3.9
ENV LMP_URL https://luna-endpoint.glitch.me/latest
RUN apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing && \
wget $LMP_URL && \
unzip latest && \
rm -rf latest LMPClient LMP\ Readme.txt
WORKDIR LMPServer
EXPOSE 8800/udp
EXPOSE 8900/tcp
VOLUME ["Universe", "Config", "Plugins"]
CMD ["mono", "Server.exe"]