aboutsummaryrefslogtreecommitdiffstats
path: root/docker/bot.Dockerfile
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/bot.Dockerfile
parentMerge branch 'apostrophes-in-otnames' into 'master' (diff)
use system flag instead of using venv
Diffstat (limited to 'docker/bot.Dockerfile')
-rw-r--r--docker/bot.Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/docker/bot.Dockerfile b/docker/bot.Dockerfile
new file mode 100644
index 000000000..4713e1f0e
--- /dev/null
+++ b/docker/bot.Dockerfile
@@ -0,0 +1,14 @@
+FROM pythondiscord/bot-base:latest
+
+ENV PIPENV_VENV_IN_PROJECT=1
+ENV PIPENV_IGNORE_VIRTUALENVS=1
+ENV PIPENV_NOSPIN=1
+ENV PIPENV_HIDE_EMOJIS=1
+
+COPY . /bot
+WORKDIR /bot
+
+RUN pipenv install --deploy --system
+
+ENTRYPOINT ["/sbin/tini", "--"]
+CMD ["python", "-m", "bot"]