aboutsummaryrefslogtreecommitdiffstats
path: root/docker/base.Dockerfile
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-13 18:02:36 +0000
committerGravatar Johannes Christ <[email protected]>2018-09-13 18:02:36 +0000
commitbe57a9bfc02fe544f208f12ba22c5c3af634f1e7 (patch)
tree8156141a17262dd52149a22d2f0b34e125dcd297 /docker/base.Dockerfile
parentMerge branch 'apostrophes-in-otnames' into 'master' (diff)
parentuse system flag instead of using venv (diff)
Merge branch 'pipenv-docker-system' into 'master'
use system flag instead of using venv See merge request python-discord/projects/bot!52
Diffstat (limited to 'docker/base.Dockerfile')
-rw-r--r--docker/base.Dockerfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/docker/base.Dockerfile b/docker/base.Dockerfile
new file mode 100644
index 000000000..de2c68c13
--- /dev/null
+++ b/docker/base.Dockerfile
@@ -0,0 +1,27 @@
+FROM python:3.6-alpine3.7
+
+RUN apk add --update tini
+RUN apk add --update build-base
+RUN apk add --update libffi-dev
+RUN apk add --update zlib
+RUN apk add --update jpeg-dev
+RUN apk add --update libxml2 libxml2-dev libxslt-dev
+RUN apk add --update zlib-dev
+RUN apk add --update freetype-dev
+
+RUN pip install pipenv
+
+RUN mkdir /bot
+COPY Pipfile /bot
+COPY Pipfile.lock /bot
+WORKDIR /bot
+
+ENV LIBRARY_PATH=/lib:/usr/lib
+ENV PIPENV_VENV_IN_PROJECT=1
+ENV PIPENV_IGNORE_VIRTUALENVS=1
+ENV PIPENV_NOSPIN=1
+ENV PIPENV_HIDE_EMOJIS=1
+
+RUN pipenv install --deploy --system
+
+# usage: FROM pythondiscord/bot-base:latest