aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-09-13 18:02:36 +0000
committerGravatar Johannes Christ <[email protected]>2018-09-13 18:02:36 +0000
commitc7d0e065dc094e09c6e2c2fa6f6d59df6ce27fb5 (patch)
tree8156141a17262dd52149a22d2f0b34e125dcd297 /docker
parentMerge branch 'apostrophes-in-otnames' into 'master' (diff)
use system flag instead of using venv
Diffstat (limited to 'docker')
-rw-r--r--docker/base.Dockerfile (renamed from docker/Dockerfile.base)2
-rw-r--r--docker/bot.Dockerfile (renamed from docker/Dockerfile)6
2 files changed, 3 insertions, 5 deletions
diff --git a/docker/Dockerfile.base b/docker/base.Dockerfile
index 2f6929e0d..de2c68c13 100644
--- a/docker/Dockerfile.base
+++ b/docker/base.Dockerfile
@@ -22,6 +22,6 @@ ENV PIPENV_IGNORE_VIRTUALENVS=1
ENV PIPENV_NOSPIN=1
ENV PIPENV_HIDE_EMOJIS=1
-RUN pipenv install
+RUN pipenv install --deploy --system
# usage: FROM pythondiscord/bot-base:latest
diff --git a/docker/Dockerfile b/docker/bot.Dockerfile
index 2db1ee24a..4713e1f0e 100644
--- a/docker/Dockerfile
+++ b/docker/bot.Dockerfile
@@ -5,12 +5,10 @@ ENV PIPENV_IGNORE_VIRTUALENVS=1
ENV PIPENV_NOSPIN=1
ENV PIPENV_HIDE_EMOJIS=1
-RUN pip install pipenv
-
COPY . /bot
WORKDIR /bot
-RUN pipenv sync
+RUN pipenv install --deploy --system
ENTRYPOINT ["/sbin/tini", "--"]
-CMD ["pipenv", "run", "start"]
+CMD ["python", "-m", "bot"]