gosec (2-amd64)

Published 2025-03-31 16:32:43 +02:00 by volker.raschek in volker.raschek/gosec-docker

Installation

docker pull git.cryptic.systems/volker.raschek/gosec:2-amd64
sha256:eefe96917145320c28fb095d67c5b3a4f26ac0ef2f9fe87cb7cc548ff936be45

Image Layers

ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit
ENV GOLANG_VERSION=1.24.0
ENV GOTOOLCHAIN=local
ENV GOPATH=/go
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY /target/ / # buildkit
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit
WORKDIR /go
ARG GOSEC_VERSION=v2.22.1
RUN |1 GOSEC_VERSION=v2.22.1 /bin/sh -c apk update && apk upgrade && apk add git make # buildkit
RUN |1 GOSEC_VERSION=v2.22.1 /bin/sh -c if [ ! -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@${GOSEC_VERSION}; fi # buildkit
RUN |1 GOSEC_VERSION=v2.22.1 /bin/sh -c if [ -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@latest; fi # buildkit
RUN |1 GOSEC_VERSION=v2.22.1 /bin/sh -c cp /go/bin/gosec /usr/bin/gosec && rm -rf /go/* # buildkit
ENTRYPOINT ["/usr/bin/gosec"]

Labels

Key Value
org.opencontainers.image.created 2025-03-31T14:25:03Z
org.opencontainers.image.revision 58742ece64cf144f908511533101fd98b2590da9
org.opencontainers.image.source https://git.cryptic.systems/volker.raschek/gosec-docker.git
org.opencontainers.image.url https://git.cryptic.systems/volker.raschek/gosec-docker
Details
Container
2025-03-31 16:32:43 +02:00
150
OCI / Docker
linux/amd64
311 MiB
Versions (38) View all
latest 2025-04-02
latest-amd64 2025-04-02
latest-arm64-v8 2025-04-02
2 2025-03-31
2.22 2025-03-31