updates complete dockerfile
This commit is contained in:
parent
0601b1a61e
commit
a4c756ce17
2 changed files with 26 additions and 1 deletions
|
@ -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
|
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.61.0
|
||||||
|
|
||||||
# trivy
|
# 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
|
# git
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
|
|
21
complete/Dockerfile_podman
Normal file
21
complete/Dockerfile_podman
Normal 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
|
Loading…
Reference in a new issue