aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Akarys42 <[email protected]>2019-09-23 16:15:49 +0200
committerGravatar Akarys42 <[email protected]>2019-09-23 16:15:49 +0200
commit052fc4e36be6b0027ebbace530dbd9814660dc66 (patch)
tree250036c9d5162c6ee62d1a7bd6c999a03a2caad5 /Dockerfile
parentChange log.error to log.exception (diff)
parentMake DEFCON days subcommand enable DEFCON (#405) (diff)
Merge branch 'master' of https://github.com/python-discord/bot into python-discord-master
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..aa6333380
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,27 @@
+FROM python:3.7-alpine3.7
+
+RUN apk add --no-cache \
+ build-base \
+ freetype-dev \
+ git \
+ jpeg-dev \
+ libffi-dev \
+ libxml2 \
+ libxml2-dev \
+ libxslt-dev \
+ tini \
+ zlib \
+ zlib-dev
+
+ENV \
+ LIBRARY_PATH=/lib:/usr/lib
+
+RUN pip install -U pipenv
+
+WORKDIR /bot
+COPY . .
+
+RUN pipenv install --deploy --system
+
+ENTRYPOINT ["/sbin/tini", "--"]
+CMD ["python3", "-m", "bot"]