aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-15 14:11:56 +0200
committerGravatar Leon Sandøy <[email protected]>2019-09-15 14:11:56 +0200
commit3385689dee24c08bb66b8bedba57caa617023f6b (patch)
tree87dffef70c93efc7e4e1c147347922e9be6670d0 /Dockerfile
parentThe DockerHub deployment should now run on 'master' (diff)
Resolves a breaking bug in the Dockerfile.
We were using a pipenv run script to launch the bot, but pipenv run scripts assume that the run command will be run inside of a virtual environment. So, the default behaviour when we try to use a run command and no venv exists is to create a venv. Because we were installing all the packages to the local environment by passing the '--system' flag to our install, this would make the bot fail with ImportErrors. This commit fixes it so that the Dockerfile will run the bot using the system Python instead of the pipenv run script.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 2 insertions, 10 deletions
diff --git a/Dockerfile b/Dockerfile
index 864b4e557..aa6333380 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,15 +14,7 @@ RUN apk add --no-cache \
zlib-dev
ENV \
- LIBRARY_PATH=/lib:/usr/lib \
- PIPENV_HIDE_EMOJIS=1 \
- PIPENV_HIDE_EMOJIS=1 \
- PIPENV_IGNORE_VIRTUALENVS=1 \
- PIPENV_IGNORE_VIRTUALENVS=1 \
- PIPENV_NOSPIN=1 \
- PIPENV_NOSPIN=1 \
- PIPENV_VENV_IN_PROJECT=1 \
- PIPENV_VENV_IN_PROJECT=1
+ LIBRARY_PATH=/lib:/usr/lib
RUN pip install -U pipenv
@@ -32,4 +24,4 @@ COPY . .
RUN pipenv install --deploy --system
ENTRYPOINT ["/sbin/tini", "--"]
-CMD ["pipenv", "run", "start"]
+CMD ["python3", "-m", "bot"]