mirror of
https://github.com/reswitched/Mephisto.git
synced 2024-06-22 22:31:41 -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;\
|
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
|
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
|
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;\
|
cd unicorn;\
|
||||||
UNICORN_ARCHS="aarch64" ./make.sh;\
|
UNICORN_ARCHS="aarch64" ./make.sh;\
|
||||||
./make.sh install;\
|
PREFIX=/nonexistent/usr ./make.sh install
|
||||||
cd /build; git clone https://github.com/reswitched/Mephisto.git; \
|
|
||||||
|
RUN cd /nonexistent; git clone --depth 1 https://github.com/reswitched/Mephisto.git;\
|
||||||
cd Mephisto;\
|
cd Mephisto;\
|
||||||
pip install -r requirements.txt;\
|
pip install -r requirements.txt;\
|
||||||
make
|
EXTRA_CC_FLAGS="-I ../usr/include" EXTRA_LD_FLAGS="-L ../usr/lib" make
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 24689
|
EXPOSE 24689
|
||||||
|
|
||||||
|
ENTRYPOINT ["/nonexistent/Mephisto/ctu"]
|
||||||
ENTRYPOINT ["/build/Mephisto/ctu"]
|
|
||||||
CMD ["${*}"]
|
CMD ["${*}"]
|
||||||
|
|
Loading…
Reference in a new issue