Dockerfile 761 B

123456789101112131415161718192021
  1. FROM gcr.io/distroless/static:latest
  2. ARG TARGETOS TARGETARCH
  3. ARG VERSION=dev
  4. ARG REVISION=unknown
  5. LABEL org.opencontainers.image.title="nebula" \
  6. org.opencontainers.image.description="A scalable overlay networking tool with a focus on performance, simplicity and security" \
  7. org.opencontainers.image.vendor="Nebula OSS" \
  8. org.opencontainers.image.source="https://github.com/slackhq/nebula" \
  9. org.opencontainers.image.version="${VERSION}" \
  10. org.opencontainers.image.revision="${REVISION}"
  11. COPY build/$TARGETOS-$TARGETARCH/nebula /nebula
  12. COPY build/$TARGETOS-$TARGETARCH/nebula-cert /nebula-cert
  13. VOLUME ["/config"]
  14. ENTRYPOINT ["/nebula"]
  15. # Allow users to override the args passed to nebula
  16. CMD ["-config", "/config/config.yml"]