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 /
27
27
EXPOSE 80
28
28
29
29
ENTRYPOINT ["/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