Created
April 30, 2020 11:31
-
-
Save Fohlen/6514a5dd68c15c98e00a5458a152fb15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get install -y build-essential zlib1g-dev git | |
RUN git clone https://github.com/tomatenquark/code.git --depth 1 | |
RUN mkdir storage | |
RUN cd /code/src/ && make master | |
WORKDIR /storage | |
CMD /code/src/tomaten_master /storage/ 28787 0.0.0.0 | |
EXPOSE 28787/udp 28787/tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Tomatenquark Master | |
After=network-online.target | |
[Service] | |
Type=simple | |
ExecStart=/home/tomatenquark/code/src/tomaten_master /home/tomatenquark/ 28787 0.0.0.0 | |
ExecReload=/bin/kill -SIGUSR1 $MAINPID | |
Restart=always | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment