aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-03-08 19:46:19 +0200
committerGravatar GitHub <[email protected]>2021-03-08 19:46:19 +0200
commit3429fe5cb18e16825b01a7d4024a015fa07452c1 (patch)
treedda6c829ba2c782b7578eaf230e5df3cbb1d58f8 /Dockerfile
parentFix grammar of unknown actor error and change tests (diff)
parentUpdate Dockerfile (diff)
Merge branch 'master' into ks123/nomination/split
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 3bb0a457..44567b8a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,14 +3,10 @@ FROM python:3.8-slim-buster
# Allow service to handle stops gracefully
STOPSIGNAL SIGQUIT
-# Set Git SHA build argument
-ARG git_sha="development"
-
# Set pip to have cleaner logs and no saved cache
ENV PIP_NO_CACHE_DIR=false \
PIPENV_HIDE_EMOJIS=1 \
- PIPENV_NOSPIN=1 \
- GIT_SHA=$git_sha
+ PIPENV_NOSPIN=1
# Install git
RUN apt-get -y update \
@@ -31,6 +27,11 @@ COPY . .
# Install project dependencies
RUN pipenv install --system --deploy
+
+# Set Git SHA environment variable
+ARG git_sha="development"
+ENV GIT_SHA=$git_sha
+
# Run web server through custom manager
ENTRYPOINT ["python", "manage.py"]
CMD ["run"]