sitepackages path

This commit is contained in:
chfl4gs
2019-11-29 14:29:57 +08:00
committed by GitHub
parent fcfc45bf94
commit 10b8bb0ee6
+4 -5
View File
@@ -4,8 +4,6 @@ MAINTAINER "Kevin Foo <[email protected]>"
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