diff options
author | 2020-12-20 16:03:45 +0200 | |
---|---|---|
committer | 2020-12-20 16:03:45 +0200 | |
commit | 8135a65748b19c7d3740c01c84e78e0a00461289 (patch) | |
tree | d6e4241aa96639991ab7138e907e2912d2686848 | |
parent | Add @Akarys42 to the codeowners (diff) |
Inject Git SHA to environment from build argument
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |