This is an automated email from the ASF dual-hosted git repository. tomaz pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 31bce07315ed94071cb43d8f503a4f7b78b72ffd Author: 99kies <[email protected]> AuthorDate: Thu Apr 30 08:35:44 2020 +0800 Add no cache and Optimize the Dockerfile format --- contrib/Dockerfile | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/contrib/Dockerfile b/contrib/Dockerfile index eabf990..54c1c28 100644 --- a/contrib/Dockerfile +++ b/contrib/Dockerfile @@ -1,32 +1,34 @@ FROM ubuntu:16.04 RUN set -e && \ - apt-get update && \ - apt-get install -y \ - software-properties-common \ - wget \ - ssh && \ - add-apt-repository ppa:deadsnakes/ppa && \ - apt-get update && \ - apt-get -y install \ - python2.7 \ - python3.4 \ - python3.5 \ - python3.6 \ - python-dev \ - python2.7-dev \ - python3.4-dev \ - python3.5-dev \ - python3.6-dev \ - pypy \ - python-pip + apt-get update && \ + apt-get install -y \ + software-properties-common \ + wget \ + ssh && \ + add-apt-repository ppa:deadsnakes/ppa && \ + apt-get update && \ + apt-get -y install \ + python2.7 \ + python3.4 \ + python3.5 \ + python3.6 \ + python-dev \ + python2.7-dev \ + python3.4-dev \ + python3.5-dev \ + python3.6-dev \ + pypy \ + python-pip RUN set -e && \ - pip install tox \ - mock \ - lockfile \ - coverage + pip install --no-cache-dir tox \ + mock \ + lockfile \ + coverage COPY . /libcloud + WORKDIR /libcloud -CMD tox -e py2.7,pypypy,py3.4,py3.5,py3.6,lint + +CMD ["tox", "-e", "py2.7", "pypypy", "py3.4", "py3.5", "py3.6", "lint"]
