- This should ultimately help for image-to-code back references. - `org.label-schema.*` labels are now deprecated, in favour of `org.opencontainers.image.*` labels. See also: https://github.com/opencontainers/image-spec/blob/master/annotations.md#back-compatibility-with-label-schema - Git revision is now injected at `docker build` time.
15 lines
581 B
Docker
15 lines
581 B
Docker
FROM DOCKERHUB_USER/weaveARCH_EXT
|
|
|
|
# These labels are pretty static, and can therefore be added early on:
|
|
LABEL maintainer="Weaveworks <help@weave.works>" \
|
|
org.opencontainers.image.title="weave-kube" \
|
|
org.opencontainers.image.source="https://github.com/weaveworks/weave" \
|
|
org.opencontainers.image.vendor="Weaveworks"
|
|
|
|
ADD ./launch.sh ./kube-peers /home/weave/
|
|
ENTRYPOINT ["/home/weave/launch.sh"]
|
|
|
|
# This label will change for every build, and should therefore be the last layer of the image:
|
|
ARG revision
|
|
LABEL org.opencontainers.image.revision="${revision}"
|