mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 14:36:33 +01:00
* slim down docker cache size Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove old centos images Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * troubleshoot test failure Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix wget version ref Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * refactor caching mechanisms Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add cache cleanup steps Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * simplify deleting cache Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix first clone issue Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tool dep Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
16 lines
535 B
Docker
16 lines
535 B
Docker
FROM alpine:3.18.3@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a AS base
|
|
|
|
RUN wget https://repo1.maven.org/maven2/org/jvnet/hudson/main/hudson-war/2.2.1/hudson-war-2.2.1.war
|
|
|
|
RUN mv hudson-war-2.2.1.war hudson.war
|
|
|
|
# let's make this image a little smaller as to not take up so much disk space
|
|
# we'll only keep the jar metadata files (pom data + manifest) and throw away the rest
|
|
RUN apk add --no-cache python3 py3-pip
|
|
COPY extract.py /extract.py
|
|
RUN python extract.py
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=base /slim /
|