strace gives the following output: execve("./amass", ["./amass"], 0x7ffe6fd83a20 /* 7 vars */) = -1 ENOENT (No such file or directory)
file: amass: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=CVZAEooA6OP4dBL1L8n5/VsP9crNTy-AUGbUGqFSB/g_EZfOkeseGVcvQEycLR/9hoaQV5CKrc-XlJpnS0m, stripped
Works fine inside a container based on ubuntu:latest for example:
FROM ubuntu:latest
RUN apt update && apt install -y wget unzip
RUN wget https://github.com/OWASP/Amass/releases/download/v3.21.2/amass_linux_amd64.zip && unzip amass_linux_amd64.zip && chmod a+x amass_linux_amd64/amass
CMD [ "sh" ]
The error could come from the absent file /lib64/ld-linux-x86-64.so.2 on alpine ? Is there any way to get amass compatible with alpine without compilation ?
Example of Dockerfile built on alpine:
Build & run:
The executable is not found.
strace
gives the following output:execve("./amass", ["./amass"], 0x7ffe6fd83a20 /* 7 vars */) = -1 ENOENT (No such file or directory)
file
:amass: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=CVZAEooA6OP4dBL1L8n5/VsP9crNTy-AUGbUGqFSB/g_EZfOkeseGVcvQEycLR/9hoaQV5CKrc-XlJpnS0m, stripped
Works fine inside a container based on
ubuntu:latest
for example:The error could come from the absent file
/lib64/ld-linux-x86-64.so.2
on alpine ? Is there any way to get amass compatible with alpine without compilation ?