File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2323 env :
2424 FILTER_REGEX_EXCLUDE : >
2525 (.*vendor/.*)|(.*tools/vendor/.*)
26- VALIDATE_DOCKERFILE_HADOLINT : false
2726 VALIDATE_GO : false
2827 VALIDATE_JSCPD : false
2928 VALIDATE_KUBERNETES_KUBECONFORM : false
Original file line number Diff line number Diff line change 22FROM golang:1.20 as builder
33
44# Copy the contents of the repository
5- ADD . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
5+ COPY . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
66
77ENV GOPATH=/workspace/go CGO_ENABLED=0
88WORKDIR /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
Original file line number Diff line number Diff line change 22FROM golang:1.20 as builder
33
44# Copy the contents of the repository
5- ADD . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
5+ COPY . /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
66
77ENV GOPATH=/workspace/go CGO_ENABLED=0
88WORKDIR /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons
@@ -12,6 +12,7 @@ RUN make build
1212
1313# Use distroless as minimal base image to package the sidecar binary
1414# Refer to https://github.com/GoogleContainerTools/distroless for more details
15+ # hadolint ignore=DL3007
1516FROM gcr.io/distroless/static:latest
1617WORKDIR /
1718COPY --from=builder /workspace/go/src/github.com/csi-addons/kubernetes-csi-addons/bin/csi-addons-sidecar /usr/sbin/
Original file line number Diff line number Diff line change 1+ # hadolint ignore=DL3007
12FROM quay.io/fedora/fedora:latest
23
3- ENV GOPATH=/go \
4- PATH="${GOPATH}/bin:${PATH}"
4+ ENV GOPATH=/go
5+ ENV PATH="${GOPATH}/bin:${PATH}"
56
7+ # hadolint ignore=DL3041
68RUN dnf -y install \
79 git \
810 make \
You can’t perform that action at this time.
0 commit comments