File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,14 @@ COPY docker-entrypoint.sh /
2727EXPOSE 80
2828
2929ENTRYPOINT ["/docker-entrypoint.sh" ]
30+
31+ ARG BUILD_DATE
32+ ARG VCS_REF
33+ LABEL org.label-schema.build-date=$BUILD_DATE \
34+ org.label-schema.docker.dockerfile="/Dockerfile" \
35+ org.label-schema.license="MIT" \
36+ org.label-schema.name="bookstack" \
37+ org.label-schema.url="https://github.com/solidnerd/docker-bookstack/" \
38+ org.label-schema.vcs-ref=$VCS_REF \
39+ org.label-schema.vcs-url="https://github.com/solidnerd/docker-bookstack.git" \
40+ org.label-schema.vcs-type="Git"
Original file line number Diff line number Diff line change 1+
2+ #!/bin/bash
3+
4+ docker build \
5+ --build-arg BUILD_DATE="$(date --rfc-3339=s)" \
6+ --build-arg VCS_REF=`git rev-parse --short HEAD` \
7+ -t $IMAGE_NAME .
You can’t perform that action at this time.
0 commit comments