aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile28
1 files changed, 19 insertions, 9 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 1613261c..1445441c 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,15 +1,25 @@
-FROM python:3.6-alpine3.7
-RUN apk add --update tini build-base git jpeg-dev zlib zlib-dev
+FROM python:3.7.2-alpine3.9
-RUN mkdir /bot
-COPY . /bot
-WORKDIR /bot
+ENTRYPOINT ["python"]
+CMD ["-m", "bot"]
-ENV LIBRARY_PATH=/lib:/usr/lib
+ENV PIP_NO_CACHE_DIR="false" \
+ PIPENV_DONT_USE_PYENV="1" \
+ PIPENV_HIDE_EMOJIS="1" \
+ PIPENV_IGNORE_VIRTUALENVS="1" \
+ PIPENV_NOSPIN="1"
+RUN apk add --no-cache --update \
+ build-base \
+ git \
+ libffi-dev \
+ # Pillow dependencies
+ freetype-dev \
+ libjpeg-turbo-dev \
+ zlib-dev
RUN pip install pipenv
-RUN pipenv install --deploy --system
-ENTRYPOINT ["/sbin/tini", "--"]
-CMD ["python", "-m", "bot"]
+COPY . /bot
+WORKDIR /bot
+RUN pipenv install --deploy --system