File tree Expand file tree Collapse file tree 7 files changed +26
-2
lines changed Expand file tree Collapse file tree 7 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ RUN dnf install -y cmake clang openssl
30
30
COPY ${SOURCE_CODE}/go.mod ./
31
31
COPY ${SOURCE_CODE}/go.sum ./
32
32
33
+ RUN GO111MODULE=on go mod download
34
+
33
35
# Copy the source
34
36
COPY ${SOURCE_CODE}/ ./
35
37
Original file line number Diff line number Diff line change @@ -19,12 +19,19 @@ RUN apk update && apk upgrade && \
19
19
apk add --no-cache bash git openssh gcc musl-dev
20
20
21
21
WORKDIR /go/src/github.com/kubeflow/pipelines
22
+
23
+ COPY ./go.mod ./
24
+ COPY ./go.sum ./
25
+ COPY ./hack/install-go-licenses.sh ./hack/
26
+
27
+ RUN GO111MODULE=on go mod download
28
+ RUN ./hack/install-go-licenses.sh
29
+
22
30
COPY . .
23
31
24
32
RUN GO111MODULE=on go build -o /bin/cache_server backend/src/cache/*.go
25
33
26
34
# Check licenses and comply with license terms.
27
- RUN ./hack/install-go-licenses.sh
28
35
# First, make sure there's no forbidden license.
29
36
RUN go-licenses check ./backend/src/cache
30
37
RUN go-licenses csv ./backend/src/cache > /tmp/licenses.csv && \
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ USER root
28
28
COPY ${SOURCE_CODE}/go.mod ./
29
29
COPY ${SOURCE_CODE}/go.sum ./
30
30
31
+ RUN GO111MODULE=on go mod download
32
+
31
33
# Copy the source
32
34
COPY ${SOURCE_CODE}/ ./
33
35
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ USER root
30
30
COPY ${SOURCE_CODE}/go.mod ./
31
31
COPY ${SOURCE_CODE}/go.sum ./
32
32
33
+ RUN GO111MODULE=on go mod download
34
+
33
35
# Copy the source
34
36
COPY ${SOURCE_CODE}/ ./
35
37
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ RUN dnf install -y bash git openssh gcc
30
30
COPY ${SOURCE_CODE}/go.mod ./
31
31
COPY ${SOURCE_CODE}/go.sum ./
32
32
33
+ RUN GO111MODULE=on go mod download
34
+
33
35
# Copy the source
34
36
COPY ${SOURCE_CODE}/ ./
35
37
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ RUN dnf upgrade -y && \
35
35
COPY ${SOURCE_CODE}/go.mod ./
36
36
COPY ${SOURCE_CODE}/go.sum ./
37
37
38
+ RUN GO111MODULE=on go mod download
39
+
38
40
# Copy the source
39
41
COPY ${SOURCE_CODE}/ ./
40
42
Original file line number Diff line number Diff line change @@ -18,11 +18,18 @@ RUN apk update && apk upgrade
18
18
RUN apk add --no-cache git gcc musl-dev
19
19
20
20
WORKDIR /src/github.com/kubeflow/pipelines
21
+
22
+ COPY ./go.mod ./
23
+ COPY ./go.sum ./
24
+ COPY ./hack/install-go-licenses.sh ./hack/
25
+
26
+ RUN GO111MODULE=on go mod download
27
+ RUN ./hack/install-go-licenses.sh
28
+
21
29
COPY . .
22
30
23
31
RUN GO111MODULE=on go build -o /bin/controller backend/src/crd/controller/viewer/*.go
24
32
# Check licenses and comply with license terms.
25
- RUN ./hack/install-go-licenses.sh
26
33
# First, make sure there's no forbidden license.
27
34
RUN go-licenses check ./backend/src/crd/controller/viewer
28
35
RUN go-licenses csv ./backend/src/crd/controller/viewer > /tmp/licenses.csv && \
You can’t perform that action at this time.
0 commit comments