aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-27 20:15:53 +0200
committerGravatar ks129 <[email protected]>2020-12-27 20:15:53 +0200
commit481df676ba8782bb1a91a9ddbf4643fdd9cf3e9d (patch)
tree8a2909f2e50946cf17f75079539ea5f4c1190c82 /Dockerfile
parentAdd Sentry SDK to dependencies (diff)
Add Git SHA build argument consuming to Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index e463544..b560d2d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,12 @@ FROM python:3.9-slim
# Allow service to handle stops gracefully
STOPSIGNAL SIGQUIT
+# Set Git SHA build argument
+ARG git_sha="development"
+
+# Set Git SHA environment variable
+ENV GIT_SHA=$git_sha
+
# Install C compiler and make
RUN apt-get update && \
apt-get install -y gcc make && \