Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0f57590

Browse filesBrowse files
authored
Merge pull request solidnerd#19 from solidnerd/add-meta-data
Add meta data
2 parents 22886f2 + 2232893 commit 0f57590
Copy full SHA for 0f57590

File tree

Expand file treeCollapse file tree

2 files changed

+18
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+18
-0
lines changed

‎Dockerfile

Copy file name to clipboardExpand all lines: Dockerfile
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,14 @@ COPY docker-entrypoint.sh /
2727
EXPOSE 80
2828

2929
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"

‎hooks/build

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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 .

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.