Merge bf6122d59ca526dfcda80d5c173d2e5e5f2c1e1b into 0e8cefa534540a8b9092f279821aac816955dd72

This commit is contained in:
Yatima 2024-11-04 11:11:14 +01:00 committed by GitHub
commit ce4a3898c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

20
Dockerfile Normal file
View 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