diff --git a/docker/.gitignore b/docker/.gitignore new file mode 100644 index 0000000..11dc30e --- /dev/null +++ b/docker/.gitignore @@ -0,0 +1 @@ +syndicate-server diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..02692d8 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,4 @@ +FROM scratch +COPY ./emptydir /data +COPY ./syndicate-server / +CMD ["/syndicate-server", "-c", "/data"] diff --git a/docker/Makefile b/docker/Makefile new file mode 100644 index 0000000..b05f17e --- /dev/null +++ b/docker/Makefile @@ -0,0 +1,13 @@ +all: + +clean: + rm -f syndicate-server + docker rmi syndicate-server + +image: syndicate-server + rm -rf emptydir + mkdir emptydir + docker build -t $$(./syndicate-server --version | tr ' ' ':') -t syndicate-server:latest . + +syndicate-server: ../target/x86_64-unknown-linux-musl/release/syndicate-server + cp -a $< $@