Skip to content

Commit 45e669f

Browse files
committed
#1833 Changed amass Dockerfile to be based on the official amass image
This is done to avoid the shorter lifecycle of amass docker images, and to also avoid the platform dependency Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent 7c5cde3 commit 45e669f

1 file changed

Lines changed: 4 additions & 21 deletions

File tree

‎scanners/amass/scanner/Dockerfile‎

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,9 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
# Base Image
6-
FROM alpine:3.18 as base
7-
ARG scannerVersion
8-
9-
RUN apk add --no-cache wget unzip \
10-
&& wget https://github.com/owasp-amass/amass/releases/download/${scannerVersion}/amass_Linux_i386.zip \
11-
&& unzip amass_Linux_i386.zip \
12-
&& rm amass_Linux_i386.zip
13-
14-
# Runtime Image
15-
FROM alpine:3.18 as runtime
5+
# Older amass versions are regularly removed from the official docker registry, this is often breaks our builds.
6+
# To prevent this we create a new image based on the official one and push it to our docker registry.
167

17-
RUN apk --no-cache add ca-certificates pax-utils \
18-
&& addgroup amass \
19-
&& adduser amass -D -G amass \
20-
&& mkdir -p /.config/amass /home/securecodebox/ \
21-
&& chown -R amass:amass /.config /home/securecodebox/
22-
23-
COPY --from=base amass_Linux_i386/amass /bin/amass
24-
25-
ENV HOME=/
26-
USER amass
8+
ARG scannerVersion
9+
FROM caffix/amass:${scannerVersion}
2710
ENTRYPOINT ["/bin/amass"]

0 commit comments

Comments
 (0)