gosec (latest-amd64)

Published 2025-04-01 23:01:07 +02:00 by volker.raschek in volker.raschek/gosec-docker

Installation

docker pull git.cryptic.systems/volker.raschek/gosec:latest-amd64
sha256:020ced2c4d8a7df7dd548533dbdfe5800763eceac9d446adead45ff221b6ba3f

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.1
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-04-01T20:53:18Z
LABEL org.opencontainers.image.revision=d4e4ab9c598b54f41d9e346516f9ecb0886c2d25
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-04-01T20:53:18Z
org.opencontainers.image.revision d4e4ab9c598b54f41d9e346516f9ecb0886c2d25
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-04-01 23:01:07 +02:00
221
OCI / Docker
linux/amd64
313 MiB
Versions (38) View all
latest 2025-04-01
latest-amd64 2025-04-01
latest-arm64-v8 2025-04-01
2 2025-03-31
2.22 2025-03-31