diff options
author | 2019-03-24 19:04:15 -0700 | |
---|---|---|
committer | 2019-03-24 19:08:21 -0700 | |
commit | 62e25fb1861a76c6ae3ac114acb14d72525539e0 (patch) | |
tree | acac6b3792639401e049f35f8f53588fd91db4f5 | |
parent | Docker: Update base image to Python 3.7.2 (diff) |
Docker: Move ENTRYPOINT & CMD to the top
This allows the cache to be leveraged for these commands, and thus may
also avoid pushing/pulling extra layers.
* Remove LIBRARY_PATH environment variable
-rw-r--r-- | docker/Dockerfile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index a12d6497..1445441c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,9 @@ FROM python:3.7.2-alpine3.9 -ENV LIBRARY_PATH="/lib:/usr/lib" \ - PIP_NO_CACHE_DIR="false" \ +ENTRYPOINT ["python"] +CMD ["-m", "bot"] + +ENV PIP_NO_CACHE_DIR="false" \ PIPENV_DONT_USE_PYENV="1" \ PIPENV_HIDE_EMOJIS="1" \ PIPENV_IGNORE_VIRTUALENVS="1" \ @@ -21,6 +23,3 @@ COPY . /bot WORKDIR /bot RUN pipenv install --deploy --system - -ENTRYPOINT ["python"] -CMD ["-m", "bot"] |