fix: invalid go build with cache command

This commit is contained in:
Worapol_Pan 2023-12-19 16:54:02 +07:00 committed by GitHub
parent 02dbedab22
commit 58c6c52e61
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
...
```