diff options
| author | 2019-09-23 16:15:49 +0200 | |
|---|---|---|
| committer | 2019-09-23 16:15:49 +0200 | |
| commit | 052fc4e36be6b0027ebbace530dbd9814660dc66 (patch) | |
| tree | 250036c9d5162c6ee62d1a7bd6c999a03a2caad5 /Dockerfile | |
| parent | Change log.error to log.exception (diff) | |
| parent | Make 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-- | Dockerfile | 27 |
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"] |