Skip to content

Commit

Permalink
Add GIT_COMMIT and BUILD_DATE to container env
Browse files Browse the repository at this point in the history
  • Loading branch information
EHJ-52n committed Dec 9, 2024
1 parent 22aa79d commit 6dd172d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ CMD ["node", "app.js"]

ARG GIT_COMMIT
LABEL org.opencontainers.image.revision="${GIT_COMMIT}"
ENV GIT_COMMIT=${GIT_COMMIT}

ARG BUILD_DATE
LABEL org.opencontainers.image.created="${BUILD_DATE}"
ENV BUILD_DATE=${BUILD_DATE}

0 comments on commit 6dd172d

Please sign in to comment.