gosec (latest-amd64)

Published 2025-02-18 12:15:26 +00:00 by volker.raschek in volker.raschek/gosec-docker

Installation

docker pull git.cryptic.systems/volker.raschek/gosec:latest-amd64
sha256:4d6c9b6f18ba7d134e69e68907d5208bd70ae674722d04071ba0f93d2b5f3e48

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
/bin/sh -c apk update && apk upgrade && apk add git make
/bin/sh -c if [ ! -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@${GOSEC_VERSION}; fi
/bin/sh -c if [ -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@latest; fi
/bin/sh -c cp /go/bin/gosec /usr/bin/gosec && rm -rf /go/*
ENTRYPOINT ["/usr/bin/gosec"]
LABEL org.opencontainers.image.created=2025-02-18T12:09:09Z
LABEL org.opencontainers.image.revision=c773c9db8db7589d4742c7fc61432fe98562d9fd
LABEL org.opencontainers.image.source=https://git.cryptic.systems/volker.raschek/gosec-docker.git
LABEL org.opencontainers.image.url=https://git.cryptic.systems/volker.raschek/gosec-docker

Labels

Key Value
org.opencontainers.image.created 2025-02-18T12:09:09Z
org.opencontainers.image.revision c773c9db8db7589d4742c7fc61432fe98562d9fd
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-02-18 12:15:26 +00:00
201
OCI / Docker
linux/amd64
312 MiB
Versions (29) View all
latest 2025-02-18
latest-amd64 2025-02-18
latest-arm64-v8 2025-02-18
2 2024-02-15
2.19 2024-02-15