Merge pull request #18960 from worapolburaphan/patch-1

fix(docs-cache-mount): invalid go build with cache command
This commit is contained in:
David Karlsson 2023-12-19 11:08:49 +01:00 committed by GitHub
commit ef93ece53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ COPY go.mod go.sum ./
RUN --mount=type=cache,target=/root/.cache/go-build go mod download
COPY ./src ./
RUN --mount=type=cache,target=/root/.cache/go-build && go build -o /bin/app /build/src
RUN --mount=type=cache,target=/root/.cache/go-build go build -o /bin/app /build/src
...
```