Skip to content

Instantly share code, notes, and snippets.

@Fohlen
Created April 30, 2020 11:31
Show Gist options
  • Save Fohlen/6514a5dd68c15c98e00a5458a152fb15 to your computer and use it in GitHub Desktop.
Save Fohlen/6514a5dd68c15c98e00a5458a152fb15 to your computer and use it in GitHub Desktop.
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
[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