aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-04-28 14:28:35 +0200
committerGravatar GitHub <[email protected]>2018-04-28 14:28:35 +0200
commit54369f64c628e957d6c4a6953f2407d0f3df8564 (patch)
tree64ad79ccdadb35a955c52a70131682de4f9efa28 /Dockerfile
parentAdd help channel 4 (diff)
adds dockerfile that uses pipenv (#60)
Dockerfile and new deploy flow that builds the container in travis
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..cf53d2fb9
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,16 @@
+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
+
+RUN pip install pipenv
+
+COPY . /bot
+WORKDIR /bot
+
+RUN pipenv sync
+
+ENTRYPOINT ["/sbin/tini", "--"]
+CMD ["pipenv", "run", "python", "-m", "bot"]