gosec-docker/Dockerfile
CSRBot 7fe5ea44f8
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update dependency docker.io/library/golang to v1.19.4
2023-01-07 21:54:13 +01:00

15 lines
458 B
Docker

FROM docker.io/library/golang:1.19.4-alpine AS build
ARG GOSEC_VERSION
RUN apk update && \
apk upgrade && \
apk add git make
RUN if [ ! -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@v${GOSEC_VERSION}; fi
RUN if [ -z "${GOSEC_VERSION}" ]; then set -ex; go install github.com/securego/gosec/v2/cmd/gosec@latest; fi
RUN cp /go/bin/gosec /usr/bin/gosec && \
rm -rf /go/*
ENTRYPOINT [ "/usr/bin/gosec" ]