Fix code smells of dockerfile (#2767)
* Fix code smells of dockerfile, To #47218832 Signed-off-by: cheyang <cheyang@163.com> * Fix code smells of dockerfile, To #47218832 Signed-off-by: cheyang <cheyang@163.com> --------- Signed-off-by: cheyang <cheyang@163.com>
This commit is contained in:
parent
8cda8f9526
commit
ac1fb4754f
|
@ -1,5 +1,5 @@
|
|||
# Build the alluxioruntime-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the fluidapp-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the csi binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the dataset-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the eacruntime-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the goosefsruntime-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the jindoruntime-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the juicefsruntime-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the thinruntime-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Build the dataset-controller manager binary
|
||||
FROM golang:1.18 as builder
|
||||
FROM golang:1.18 AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
|
||||
COPY . .
|
||||
|
|
|
@ -3,7 +3,7 @@ sonar.organization=fluid-cloudnative
|
|||
|
||||
sonar.sources=.
|
||||
|
||||
sonar.exclusions=docs/**
|
||||
sonar.exclusions=**/docs/**,**/docs-new/**,**/*test.go,**/vendor/**,**/apis/**
|
||||
|
||||
sonar.sourceEncoding=UTF-8
|
||||
|
||||
|
@ -11,10 +11,10 @@ sonar.host.url=https://sonarcloud.io
|
|||
|
||||
# Exclude following set of patterns from coverage analysis
|
||||
sonar.coverage.exclusions=**/vendor/**,**/*_test.go,tests/**,docs/**
|
||||
sonar.exclusions=**/*test.go,**/vendor/**
|
||||
|
||||
# Exclude following set of patterns from code analysis
|
||||
sonar.go.exclusions=**/vendor/**,**/*_test.go,docs/**
|
||||
|
||||
# Exclude following set of patterns from duplication detection
|
||||
sonar.cpd.exclusions=docs/**,docs-new/**,**/*test.go,**/vendor/**
|
||||
sonar.securityhotspot.exclusions=**/charts/**
|
||||
|
|
Loading…
Reference in New Issue