mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-30 04:50:45 +02:00
fix(docker): install cosign and syft with apk (#5275)
this should simplify things a little bit Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
9cf781ab74
commit
c67b8d0ba7
10
Dockerfile
10
Dockerfile
@ -1,7 +1,9 @@
|
||||
FROM golang:1.23.3-alpine@sha256:c694a4d291a13a9f9d94933395673494fc2cc9d4777b85df3a7e70b3492d3574
|
||||
|
||||
RUN apk add --no-cache bash \
|
||||
build-base \
|
||||
curl \
|
||||
cosign \
|
||||
docker-cli \
|
||||
docker-cli-buildx \
|
||||
git \
|
||||
@ -9,16 +11,10 @@ RUN apk add --no-cache bash \
|
||||
mercurial \
|
||||
make \
|
||||
openssh-client \
|
||||
build-base \
|
||||
syft \
|
||||
tini \
|
||||
upx
|
||||
|
||||
# install cosign
|
||||
COPY --from=ghcr.io/sigstore/cosign/cosign:v2.4.0@sha256:9d50ceb15f023eda8f58032849eedc0216236d2e2f4cfe1cdf97c00ae7798cfe /ko-app/cosign /usr/bin/cosign
|
||||
|
||||
# install syft
|
||||
RUN curl -sSfL https://raw.githubusercontent.com/anchore/syft/v0.84.1/install.sh | sh -s -- -b /usr/local/bin
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
|
||||
CMD [ "-h" ]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user