-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile #392
base: master
Are you sure you want to change the base?
Add Dockerfile #392
Changes from all commits
0a50f9f
8662f51
c65af19
d5096dc
31a7a13
2f243e3
d489ed4
bf6122d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ENV MOTD="Welcome to our Docker Syncplay server!" | ||
ENV PORT=8999 | ||
ENV PASSWORD="changethis" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm unsure about having a default password. As it stands the docker file will result in server image that cannot be started in non-passworded mode. |
||
ENV SALT="changethis" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There should be no default salt value. Having a single default implies that all default docker images would always end up with the same salt. Which for the most part defeats entire purpose of having it in first place. |
||
|
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see no reason not to just use ubuntu:latest here.