aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-03-24 18:22:16 -0700
committerGravatar MarkKoz <[email protected]>2019-03-24 19:07:41 -0700
commitcdfd64648a03156bb933421ffc05010734bc3ea0 (patch)
tree884ff92e8c3e3584944fb57c6298d14ec8a4b7ca
parentDocker: Disable pip cache & set env vars (diff)
Docker: Disable apk cache
-rw-r--r--docker/Dockerfile18
1 files changed, 13 insertions, 5 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index fa34c02b..605be88b 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,9 +1,4 @@
FROM python:3.7-alpine3.7
-RUN apk add --update libffi-dev build-base git jpeg-dev zlib zlib-dev
-
-RUN mkdir /bot
-COPY . /bot
-WORKDIR /bot
ENV LIBRARY_PATH="/lib:/usr/lib" \
PIP_NO_CACHE_DIR="false" \
@@ -12,6 +7,19 @@ ENV LIBRARY_PATH="/lib:/usr/lib" \
PIPENV_IGNORE_VIRTUALENVS="1" \
PIPENV_NOSPIN="1"
+RUN apk add --no-cache --update \
+ build-base \
+ git \
+ libffi-dev \
+ # Pillow dependencies
+ jpeg-dev \
+ zlib \
+ zlib-dev
+
+RUN mkdir /bot
+COPY . /bot
+WORKDIR /bot
+
RUN pip install pipenv
RUN pipenv install --deploy --system