Created
November 28, 2017 11:06
-
-
Save vlastv/f24890dc09608111e336d0ed7ef9d90c to your computer and use it in GitHub Desktop.
docker manticoresoftware/manticore:alpine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN set -ex; \ | |
\ | |
apk add --no-cache --virtual .build-deps \ | |
coreutils \ | |
git \ | |
cmake \ | |
make \ | |
g++ \ | |
mariadb-dev \ | |
bison \ | |
flex-dev \ | |
; \ | |
\ | |
git clone --depth=1 https://github.com/manticoresoftware/manticore.git /usr/src/manticore; \ | |
\ | |
mkdir -p /usr/src/manticore/build; \ | |
cd /usr/src/manticore/build; \ | |
\ | |
cmake -DDISABLE_TESTING=ON /usr/src/manticore; \ | |
make --jobs="$(nproc)"; \ | |
make install; \ | |
\ | |
rm -r /usr/src/manticore; \ | |
\ | |
runDeps="$( \ | |
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \ | |
| tr ',' '\n' \ | |
| sort -u \ | |
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ | |
)"; \ | |
apk add --no-cache --virtual .manticore-rundeps $runDeps; \ | |
\ | |
apk del .build-deps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@muhtarudinsiregar Have you successfully built it?