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