From 3062c43cbc3926c2b74fad053b68a6c89efe62a2 Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Wed, 16 Oct 2019 10:54:21 +0800 Subject: [PATCH] fix(ci): remove cffi from gnes docker image --- Dockerfiles/alpine.Dockerfile | 1 - Dockerfiles/buster.Dockerfile | 1 - Dockerfiles/ubuntu18.Dockerfile | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfiles/alpine.Dockerfile b/Dockerfiles/alpine.Dockerfile index c18ff899..b8312abf 100644 --- a/Dockerfiles/alpine.Dockerfile +++ b/Dockerfiles/alpine.Dockerfile @@ -20,7 +20,6 @@ RUN apk add --no-cache \ musl-dev python3-dev py-pgen cython openblas-dev && \ apk add --no-cache libstdc++ openblas libzmq && \ ln -s locale.h /usr/include/xlocale.h && \ - pip install cffi==1.12.3 --no-cache-dir --compile && \ pip install . --no-cache-dir --compile && \ find /usr/lib/python3.7/ -name 'tests' -exec rm -r '{}' + && \ find /usr/lib/python3.7/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \; && \ diff --git a/Dockerfiles/buster.Dockerfile b/Dockerfiles/buster.Dockerfile index 38c92684..a8551bdd 100644 --- a/Dockerfiles/buster.Dockerfile +++ b/Dockerfiles/buster.Dockerfile @@ -20,7 +20,6 @@ ADD setup.py MANIFEST.in requirements.txt README.md ./ ADD gnes ./gnes/ RUN ln -s locale.h /usr/include/xlocale.h && \ - pip install cffi==1.12.3 --no-cache-dir --compile && \ pip install . --no-cache-dir --compile && \ rm -rf /tmp/* && rm -rf /gnes && \ rm /usr/include/xlocale.h diff --git a/Dockerfiles/ubuntu18.Dockerfile b/Dockerfiles/ubuntu18.Dockerfile index e556bd59..5f1d01c9 100644 --- a/Dockerfiles/ubuntu18.Dockerfile +++ b/Dockerfiles/ubuntu18.Dockerfile @@ -27,7 +27,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ ADD setup.py MANIFEST.in requirements.txt README.md ./ ADD gnes ./gnes/ -RUN pip3 install cffi==1.12.3 --no-cache-dir --compile && pip3 install . --no-cache-dir --compile && \ +RUN pip3 install . --no-cache-dir --compile && \ rm -rf /tmp/* && rm -rf /gnes WORKDIR /