diff --git a/Dockerfile b/Dockerfile index ec6b8d6..66fef88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,20 +5,21 @@ 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 /build; chown nobody:nogroup /build +RUN mkdir /nonexistent; chown nobody:nogroup /nonexistent USER nobody -RUN cd /build; git clone https://github.com/reswitched/unicorn.git;\ +RUN cd /nonexistent; git clone --depth 1 https://github.com/reswitched/unicorn.git;\ cd unicorn;\ UNICORN_ARCHS="aarch64" ./make.sh;\ - ./make.sh install;\ - cd /build; git clone https://github.com/reswitched/Mephisto.git; \ + PREFIX=/nonexistent/usr ./make.sh install + +RUN cd /nonexistent; git clone --depth 1 https://github.com/reswitched/Mephisto.git;\ cd Mephisto;\ pip install -r requirements.txt;\ - make + EXTRA_CC_FLAGS="-I ../usr/include" EXTRA_LD_FLAGS="-L ../usr/lib" make + EXPOSE 24689 - -ENTRYPOINT ["/build/Mephisto/ctu"] +ENTRYPOINT ["/nonexistent/Mephisto/ctu"] CMD ["${*}"]