aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-20 16:03:45 +0200
committerGravatar ks129 <[email protected]>2020-12-20 16:03:45 +0200
commit8135a65748b19c7d3740c01c84e78e0a00461289 (patch)
treed6e4241aa96639991ab7138e907e2912d2686848
parentAdd @Akarys42 to the codeowners (diff)
Inject Git SHA to environment from build argument
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index ea05c5c..a358635 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -35,11 +35,13 @@ RUN chmod +x /usr/sbin/nsjail
FROM base as venv
ARG DEV
+ARG git_sha="development"
ENV PIP_NO_CACHE_DIR=false \
PIPENV_DONT_USE_PYENV=1 \
PIPENV_HIDE_EMOJIS=1 \
- PIPENV_NOSPIN=1
+ PIPENV_NOSPIN=1 \
+ GIT_SHA=$git_sha
COPY Pipfile Pipfile.lock /snekbox/
WORKDIR /snekbox