2024-08-14 09:44:19 -03:00
|
|
|
FROM golang:1.23.0-alpine@sha256:d0b31558e6b3e4cc59f6011d79905835108c919143ebecc58f35965bf79948f4
|
2018-11-27 08:49:25 -06:00
|
|
|
|
2018-11-29 12:40:04 -06:00
|
|
|
RUN apk add --no-cache bash \
|
2021-08-24 20:49:11 -03:00
|
|
|
curl \
|
|
|
|
docker-cli \
|
|
|
|
docker-cli-buildx \
|
|
|
|
git \
|
2022-02-13 17:37:38 +01:00
|
|
|
gpg \
|
2021-08-24 20:49:11 -03:00
|
|
|
mercurial \
|
|
|
|
make \
|
2022-04-29 09:32:24 -03:00
|
|
|
openssh-client \
|
2021-09-21 21:17:42 -04:00
|
|
|
build-base \
|
|
|
|
tini
|
2018-11-27 08:49:25 -06:00
|
|
|
|
2021-11-18 13:54:54 +01:00
|
|
|
# install cosign
|
2024-08-23 15:53:45 +02:00
|
|
|
COPY --from=gcr.io/projectsigstore/cosign:v2.4.0@sha256:9d50ceb15f023eda8f58032849eedc0216236d2e2f4cfe1cdf97c00ae7798cfe /ko-app/cosign /usr/bin/cosign
|
2021-11-18 13:54:54 +01:00
|
|
|
|
2023-07-12 14:47:37 +02:00
|
|
|
# install syft
|
|
|
|
RUN curl -sSfL https://raw.githubusercontent.com/anchore/syft/v0.84.1/install.sh | sh -s -- -b /usr/local/bin
|
|
|
|
|
2021-09-21 21:17:42 -04:00
|
|
|
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]
|
2018-09-04 15:19:01 +03:00
|
|
|
CMD [ "-h" ]
|
2018-11-27 08:49:25 -06:00
|
|
|
|
2018-12-16 11:11:01 -02:00
|
|
|
COPY scripts/entrypoint.sh /entrypoint.sh
|
2018-11-27 08:49:25 -06:00
|
|
|
RUN chmod +x /entrypoint.sh
|
2018-12-16 11:11:01 -02:00
|
|
|
|
2021-01-07 16:21:12 -03:00
|
|
|
COPY goreleaser_*.apk /tmp/
|
2021-11-17 15:00:10 -03:00
|
|
|
RUN apk add --no-cache --allow-untrusted /tmp/goreleaser_*.apk
|