mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +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>
7 lines
204 B
Docker
7 lines
204 B
Docker
FROM --platform=linux/amd64 golang:1.18.10-alpine
|
|
|
|
FROM scratch
|
|
|
|
# we don't need the entire golang toolchain, just a single binary with the stdlib baked in
|
|
COPY --from=0 /usr/local/go/bin/gofmt bin/gofmt
|