updates complete dockerfile
Some checks failed
/ build-go (push) Failing after 19s
/ build-kaniko (push) Failing after 35s
/ build-complete (push) Failing after 34s
/ build-golang-ci-lint (push) Has been cancelled
/ build-trivy (push) Has been cancelled

This commit is contained in:
franz.germann1 2024-12-16 11:44:41 +01:00
parent 0601b1a61e
commit a4c756ce17
2 changed files with 26 additions and 1 deletions

View file

@ -7,7 +7,11 @@ RUN apk add sudo curl
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.61.0
# trivy
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/bin latest
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/bin latest
RUN ls -la /usr/bin
# podman
RUN apk add podman
# git
RUN apk add --no-cache git

View file

@ -0,0 +1,21 @@
FROM --platform=linux/amd64 golang:1.23-alpine AS golang
FROM --platform=linux/amd64 mgoltzsche/podman:5.3.1
# go
COPY --from=golang /usr/local/go/ /usr/local/go/
ENV PATH="/usr/local/go/bin:${PATH}"
RUN apk add sudo curl
# linting
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.61.0
# trivy
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/bin latest
RUN ls -la /usr/bin
# ko
# git
RUN apk add --no-cache git