Merge "Speed-up building applier and clusterctl images"
This commit is contained in:
commit
220445cf80
@ -12,8 +12,9 @@ RUN update-ca-certificates
|
|||||||
ENV PATH "/usr/local/go/bin:$PATH"
|
ENV PATH "/usr/local/go/bin:$PATH"
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY image/ .
|
COPY image/go.mod image/go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
COPY image/ ./
|
||||||
RUN go build -v -o /usr/local/bin/config-function ./
|
RUN go build -v -o /usr/local/bin/config-function ./
|
||||||
|
|
||||||
FROM ${PLUGINS_RELEASE_IMAGE} as release
|
FROM ${PLUGINS_RELEASE_IMAGE} as release
|
||||||
|
@ -24,8 +24,9 @@ RUN update-ca-certificates
|
|||||||
ENV PATH "/usr/local/go/bin:$PATH"
|
ENV PATH "/usr/local/go/bin:$PATH"
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY image/ .
|
COPY image/go.mod image/go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
COPY image/ ./
|
||||||
RUN go build -v -o /usr/local/bin/config-function ./
|
RUN go build -v -o /usr/local/bin/config-function ./
|
||||||
|
|
||||||
FROM ${PLUGINS_RELEASE_IMAGE} as release
|
FROM ${PLUGINS_RELEASE_IMAGE} as release
|
||||||
|
@ -12,10 +12,9 @@ RUN update-ca-certificates
|
|||||||
ENV PATH "/usr/local/go/bin:$PATH"
|
ENV PATH "/usr/local/go/bin:$PATH"
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
WORKDIR /go/src/
|
WORKDIR /go/src/
|
||||||
COPY image/go.mod .
|
COPY image/go.mod image/go.sum ./
|
||||||
COPY image/go.sum .
|
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY image/main.go .
|
COPY image/ ./
|
||||||
RUN go build -v -o /usr/local/bin/config-function ./
|
RUN go build -v -o /usr/local/bin/config-function ./
|
||||||
|
|
||||||
FROM ${PLUGINS_RELEASE_IMAGE} as release
|
FROM ${PLUGINS_RELEASE_IMAGE} as release
|
||||||
|
Loading…
Reference in New Issue
Block a user