add standard labels
This commit is contained in:
parent
6172a745a8
commit
7f63b03093
@ -15,6 +15,16 @@ RUN deluser --remove-home node \
|
|||||||
# add tini, timezone support
|
# add tini, timezone support
|
||||||
RUN apk --update --no-cache add tzdata tini
|
RUN apk --update --no-cache add tzdata tini
|
||||||
|
|
||||||
|
# labels
|
||||||
|
LABEL maintainer="Asif Bacchus <asif@bacchus.cloud>"
|
||||||
|
LABEL org.label-schema.cmd="docker run -d --name livereload -v /dir/to/watch:/var/watch -p 127.0.0.1:35729:35729 [-e ...] docker.asifbacchus.app/livereload/livereload:latest"
|
||||||
|
LABEL org.label-schema.description="Dockerized livereload npm running under (limited) node user. Environment variables allow specifying files to watch/exclude and notification delay."
|
||||||
|
LABEL org.label-schema.name="livereload"
|
||||||
|
LABEL org.label-schema.schema-version="1.0"
|
||||||
|
LABEL org.label-schema.url="https://git.asifbacchus.app/ab-docker/webdev"
|
||||||
|
LABEL org.label-schema.usage="https://git.asifbacchus.app/ab-docker/webdev/wiki"
|
||||||
|
LABEL org.label-schema.vcs-url="https://git.asifbacchus.app/ab-docker/webdev.git"
|
||||||
|
|
||||||
# create default volume in case user forgets to map one
|
# create default volume in case user forgets to map one
|
||||||
VOLUME [ "/var/watch" ]
|
VOLUME [ "/var/watch" ]
|
||||||
|
|
||||||
@ -41,6 +51,6 @@ CMD node node_modules/livereload/bin/livereload.js /var/watch --debug --exts $EX
|
|||||||
|
|
||||||
# set build timestamp and version labels
|
# set build timestamp and version labels
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
LABEL org.label-schema.version="0.1"
|
LABEL org.label-schema.version="0.5"
|
||||||
LABEL org.label-schema.build-date=${BUILD_DATE}
|
LABEL org.label-schema.build-date=${BUILD_DATE}
|
||||||
#EOF
|
#EOF
|
Loading…
Reference in New Issue
Block a user