diff options
author | 2019-03-24 18:22:16 -0700 | |
---|---|---|
committer | 2019-03-24 19:07:41 -0700 | |
commit | cdfd64648a03156bb933421ffc05010734bc3ea0 (patch) | |
tree | 884ff92e8c3e3584944fb57c6298d14ec8a4b7ca | |
parent | Docker: Disable pip cache & set env vars (diff) |
Docker: Disable apk cache
-rw-r--r-- | docker/Dockerfile | 18 |
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 |