File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,9 @@ WORKDIR /workspace
2525ARG goproxy=https://proxy.golang.org
2626ENV GOPROXY=$goproxy
2727
28- # Copy the Go Modules manifests
29- COPY go.mod go.mod
30- COPY go.sum go.sum
31-
32- # Cache deps before building and copying source so that we don't need to re-download as much
33- # and so that source changes don't invalidate our downloaded layer
34- RUN --mount=type=cache,target=/go/pkg/mod \
35- go mod download
36-
3728# Copy the sources
3829COPY ./ ./
3930
40- # Cache the go build into the the Go’s compiler cache folder so we take benefits of compiler caching across docker build calls
41- RUN --mount=type=cache,target=/root/.cache/go-build \
42- --mount=type=cache,target=/go/pkg/mod \
43- go build .
44-
4531# Build
4632ARG package=.
4733ARG ARCH
You can’t perform that action at this time.
0 commit comments