diff options
author | 2019-01-12 14:47:45 +0100 | |
---|---|---|
committer | 2019-01-12 14:47:45 +0100 | |
commit | 389adacca74c86cab1abd2a0e6863ccc10dc102d (patch) | |
tree | 5134bc9eae0747e60202d731098b5085363a4b6e | |
parent | Update lockfile. (diff) |
Minimize stages required to build image.
-rw-r--r-- | Dockerfile | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/Dockerfile b/Dockerfile index 983a226e4..e08e37a76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,30 +1,33 @@ FROM python:3.7-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 apk add --update git +RUN apk add --update --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 -ENV PIPENV_VENV_IN_PROJECT=1 -ENV PIPENV_IGNORE_VIRTUALENVS=1 -ENV PIPENV_NOSPIN=1 -ENV PIPENV_HIDE_EMOJIS=1 -ENV PIPENV_VENV_IN_PROJECT=1 -ENV PIPENV_IGNORE_VIRTUALENVS=1 -ENV PIPENV_NOSPIN=1 -ENV PIPENV_HIDE_EMOJIS=1 +ENV \ + LIBRARY_PATH=/lib:/usr/lib \ + PIPENV_HIDE_EMOJIS=1 \ + PIPENV_HIDE_EMOJIS=1 \ + PIPENV_IGNORE_VIRTUALENVS=1 \ + PIPENV_IGNORE_VIRTUALENVS=1 \ + PIPENV_NOSPIN=1 \ + PIPENV_NOSPIN=1 \ + PIPENV_VENV_IN_PROJECT=1 \ + PIPENV_VENV_IN_PROJECT=1 RUN pip install -U pipenv -RUN mkdir -p /bot -COPY . /bot WORKDIR /bot +COPY . . RUN pipenv install --deploy --system |