syncplay/Dockerfile
Yatima Santamorena 2f243e3282 better Dockerfile
2021-04-16 17:43:02 +02:00

18 lines
379 B
Docker

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
CMD echo $MOTD > motd.txt && syncplay-server --password $PASSWORD --port $PORT --salt $SALT --motd-file motd.txt