Simplify dockerfile some more, use current git clone during build context

This commit is contained in:
Marcel Wysocki 2017-12-14 09:54:18 +01:00
parent 9b5b231345
commit 3834bbf341

View file

@ -5,7 +5,8 @@ RUN apt update; apt install -y wget; \
echo 'deb http://apt.llvm.org/xenial/ llvm-toolchain-artful-5.0 main' >> /etc/apt/sources.list ; apt update;\
apt install -y clang-5.0 lldb-5.0 lld-5.0 libc++-dev git cmake python-pip liblz4-dev; apt clean all
RUN mkdir /nonexistent; chown nobody:nogroup /nonexistent
ADD . /nonexistent/Mephisto
RUN chown nobody:nogroup /nonexistent -R
USER nobody
RUN cd /nonexistent; git clone --depth 1 https://github.com/reswitched/unicorn.git;\
@ -13,8 +14,7 @@ RUN cd /nonexistent; git clone --depth 1 https://github.com/reswitched/unicorn.g
UNICORN_ARCHS="aarch64" ./make.sh;\
PREFIX=/nonexistent/usr ./make.sh install
RUN cd /nonexistent; git clone --depth 1 https://github.com/reswitched/Mephisto.git;\
cd Mephisto;\
RUN cd /nonexistent/Mephisto;\
pip install -r requirements.txt;\
EXTRA_CC_FLAGS="-I ../usr/include" EXTRA_LD_FLAGS="-L ../usr/lib" make