Merge pull request #39 from briandowns/secure_build

update to perform secure build and possible arm64 support
This commit is contained in:
Brian Downs
2023-06-13 17:18:35 -07:00
committed by GitHub
+2 -2
View File
@@ -1,10 +1,10 @@
ARG GOLANG=golang:1.19.5-alpine3.17
ARG GOLANG=rancher/hardened-build-base:v1.20.4b11
FROM ${GOLANG}
ARG DAPPER_HOST_ARCH
ENV ARCH $DAPPER_HOST_ARCH
RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates
RUN apk -U add \bash git gcc musl-dev docker vim less file curl wget ca-certificates
RUN if [ "${ARCH}" == "amd64" ]; then \
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.15.0; \
fi