diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..ac566db7d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:alpine as buildenv + +RUN mkdir -p /build/bin +ADD . /build/ +WORKDIR /build +RUN apk add make +RUN make +RUN make install + +FROM alpine:3.7 +COPY --from=buildenv /build/nebula /usr/bin/nebula +COPY --from=buildenv /build/nebula-cert /usr/bin/nebula-cert +WORKDIR /app +CMD ["nebula"] \ No newline at end of file