mirror of
https://github.com/reswitched/Mephisto.git
synced 2024-05-11 09:14:54 -04:00
27 lines
878 B
Docker
27 lines
878 B
Docker
FROM ubuntu:17.10
|
|
|
|
RUN apt update; apt install -y wget; \
|
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add -;\
|
|
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
|
|
|
|
ADD . /nonexistent/Mephisto
|
|
RUN chown nobody:nogroup /nonexistent -R
|
|
USER nobody
|
|
|
|
RUN cd /nonexistent; git clone --depth 1 https://github.com/reswitched/unicorn.git;\
|
|
cd unicorn;\
|
|
UNICORN_ARCHS="aarch64" ./make.sh;\
|
|
PREFIX=/nonexistent/usr ./make.sh install
|
|
|
|
RUN cd /nonexistent/Mephisto;\
|
|
pip install -r requirements.txt;\
|
|
EXTRA_CC_FLAGS="-I ../usr/include" EXTRA_LD_FLAGS="-L ../usr/lib" make
|
|
|
|
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/nonexistent/usr/lib
|
|
|
|
EXPOSE 24689
|
|
|
|
ENTRYPOINT ["/nonexistent/Mephisto/ctu"]
|
|
CMD ["${*}"]
|