kube-tarian / git-bridge

Found consecutive RUN commands DOK-W1001
Anti-pattern
Minor
10 months ago10 months old
Multiple consecutive RUN instructions. Consider consolidation.
 3COPY ./ ./
 4
 5RUN go mod download
 6RUN CGO_ENABLED=0 go build -o ./build/client client/main.go 7
 8FROM scratch
 9COPY --from=builder ./build/client client
Multiple consecutive RUN instructions. Consider consolidation.
 3COPY ./ ./
 4
 5RUN go mod download
 6RUN CGO_ENABLED=0 go build -o ./build/agent agent/main.go 7
 8FROM scratch
 9COPY --from=builder ./build/agent agent
Multiple consecutive RUN instructions. Consider consolidation.
 3COPY ./ ./
 4
 5RUN go mod download
 6RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./git-bridge 7
 8FROM scratch
 9COPY --from=builder /git-bridge git-bridge