diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile new file mode 100644 index 0000000..a5174eb --- /dev/null +++ b/contrib/docker/Dockerfile @@ -0,0 +1,18 @@ +FROM golang:stretch +MAINTAINER Christer Waren/CWINFO "christer.waren@cwinfo.org" + +RUN apt-get update \ + && apt-get upgrade -y + +ADD . /src + +WORKDIR /src + +RUN adduser --system --home /etc/yggdrasil-network --uid 1000 yggdrasil-network \ + && rm -rf build_* && ./build \ + && cp yggdrasil /usr/bin \ + && cp contrib/docker/entrypoint.sh / + +VOLUME [ "/etc/yggdrasil-network" ] + +ENTRYPOINT [ "/entrypoint.sh" ]