5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 08:45:39 +00:00
yggdrasil-go/contrib/docker/Dockerfile

19 lines
415 B
Docker
Raw Normal View History

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" ]