mirror of
https://github.com/reswitched/Mephisto.git
synced 2024-05-23 06:37:19 -04:00
use nobody users home directory
This commit is contained in:
parent
daf97c5336
commit
2fe08ebcd9
15
Dockerfile
15
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 ["${*}"]
|
||||
|
|
Loading…
Reference in a new issue