diff options
author | 2021-03-01 20:22:42 +0000 | |
---|---|---|
committer | 2021-03-01 20:22:42 +0000 | |
commit | f17075f4f187de1b458e4209265002c68baa3e70 (patch) | |
tree | 8e4831a5cdb65ee4b58b8fee940b9195e08eb426 | |
parent | Merge pull request #450 from python-discord/error_pages (diff) |
Update Dockerfile
-rw-r--r-- | Dockerfile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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"] |