Skip to content

Commit

Permalink
Update Dockerfile with support for Git commit
Browse files Browse the repository at this point in the history
Add commands to Dockerfile to support labeling Docker image with Git commit hash

Signed-off-by: Scott Lowe <[email protected]>
  • Loading branch information
scottslowe committed Oct 12, 2017
1 parent 5b2cbb3 commit 1fe67df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM python:alpine

MAINTAINER Scott S. Lowe <[email protected]>
LABEL maintainer="Scott S. Lowe <[email protected]>"

ARG GIT_COMMIT=unspecified
LABEL git_commit=$GIT_COMMIT

RUN pip install flask

Expand Down

0 comments on commit 1fe67df

Please sign in to comment.