chore(docker): add opencontainers labels to docker image

This commit is contained in:
Łukasz Mierzwa
2020-11-14 17:31:32 +00:00
committed by Łukasz Mierzwa
parent f74b778314
commit 7e8093fd50

View File

@@ -24,6 +24,9 @@ ARG VERSION
RUN CGO_ENABLED=0 make -C /src VERSION="${VERSION:-dev}" karma
FROM gcr.io/distroless/base
ARG VERSION
LABEL org.opencontainers.image.source https://github.com/prymitive/karma
LABEL org.opencontainers.image.version ${VERSION}
COPY --from=go-builder /src/karma /karma
EXPOSE 8080
ENTRYPOINT ["/karma"]