解决 docker build 提示 Wrong architecture 'amd64'
使用 securify2 的 docker 版本进行 sc 安全扫描
- 执行语句
RUN wget https://github.com/souffle-lang/souffle/releases/download/1.6.2/souffle_1.6.2-1_amd64.deb -O /tmp/souffle.deb &&\ gdebi --n /tmp/souffle.deb
text
Reading package lists... Done
Building dependency tree
This package is uninstallable0%
#8 10.68 Wrong architecture 'amd64' -- Run dpkg --add-architecture to add it and update afterwards
Reading state information... Done
------
executor failed running [/bin/sh -c wget https://github.com/souffle-lang/souffle/releases/download/1.6.2/souffle_1.6.2-1_amd64.deb -O /tmp/souffle.deb && gdebi --n /tmp/souffle.deb]: exit code: 1
解决: 加上参数 --platform=linux/amd64
docker build --platform=linux/amd64 -t securify .