From 10b8bb0ee6b7b176367ea120084bc8092e161335 Mon Sep 17 00:00:00 2001 From: chfl4gs <55137784+chfl4gs@users.noreply.github.com> Date: Fri, 29 Nov 2019 14:29:57 +0800 Subject: [PATCH] sitepackages path --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58f51c7d..cf3517ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,6 @@ MAINTAINER "Kevin Foo " ENV DEBIAN_FRONTEND=noninteractive -COPY dockerfix /fix.sh - RUN apt-get update \ && apt-get -y upgrade \ && apt-get install -y python3-pip git cmake @@ -18,11 +16,12 @@ RUN cd /qiling \ && pip3 install -r requirements.txt \ && python3 setup.py install -RUN chmod +x /fix.sh \ - && /fix.sh +RUN pysite1=$(python3 -c "import site; print(site.getsitepackages()[0])"); \ + pysite2=$(python3 -c "import site; print(site.getsitepackages()[1])") \ + && cp ${pysite1}${pysite2}/keystone/libkeystone.so $pysite1/keystone/ RUN apt-get clean \ - && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /fix.sh + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ENV HOME /qiling