Merge bf6122d59ca526dfcda80d5c173d2e5e5f2c1e1b into 0e8cefa534540a8b9092f279821aac816955dd72
This commit is contained in:
commit
ce4a3898c4
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@ -0,0 +1,20 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
ENV MOTD="Welcome to our Docker Syncplay server!"
|
||||
ENV PORT=8999
|
||||
ENV PASSWORD="changethis"
|
||||
ENV SALT="changethis"
|
||||
|
||||
RUN apt update && apt-get install -y make python3 python3-twisted
|
||||
|
||||
COPY . /syncplay
|
||||
WORKDIR syncplay
|
||||
|
||||
RUN make install
|
||||
|
||||
EXPOSE $PORT
|
||||
|
||||
RUN apt-get install -y net-tools
|
||||
HEALTHCHECK CMD netstat -tulpn | grep $PORT || exit 1
|
||||
|
||||
CMD echo $MOTD > motd.txt && syncplay-server --password $PASSWORD --port $PORT --salt $SALT --motd-file motd.txt
|
||||
Loading…
x
Reference in New Issue
Block a user