Added HEALTHCHECK

This commit is contained in:
Yatima Santamorena 2021-05-13 19:05:01 +02:00
parent 2f243e3282
commit d489ed46c9

View File

@ -14,4 +14,7 @@ RUN make install
EXPOSE $PORT EXPOSE $PORT
RUN apt-get install -y net-tools
HEALTHCHECK CMD netstat -tulpn | grep 8999 || exit 1
CMD echo $MOTD > motd.txt && syncplay-server --password $PASSWORD --port $PORT --salt $SALT --motd-file motd.txt CMD echo $MOTD > motd.txt && syncplay-server --password $PASSWORD --port $PORT --salt $SALT --motd-file motd.txt