aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorGravatar mathsman5133 <[email protected]>2018-10-12 10:29:11 +1100
committerGravatar mathsman5133 <[email protected]>2018-10-12 10:29:11 +1100
commit010cb21de026cd3021fa29fc38f838b754bd540c (patch)
tree73609ffc131e7aa76dc99dcd53286192696b86a2 /docker/Dockerfile
parentFixed docstrings, add blank lines for readibility, method of finding last 10 ... (diff)
parentThe app was logging to the wrong directory. This is now fixed. Also silenced ... (diff)
Merge remote-tracking branch 'upstream/master' into candy-collection
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 00000000..9c4406bf
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,15 @@
+FROM python:3.6-alpine3.7
+RUN apk add --update tini git
+
+RUN mkdir /bot
+COPY . /bot
+WORKDIR /bot
+
+ENV LIBRARY_PATH=/lib:/usr/lib
+
+RUN pip install pipenv
+RUN pipenv install --deploy --system
+
+ENTRYPOINT ["/sbin/tini", "--"]
+CMD ["python", "-m", "bot"]
+