mirror of https://github.com/docker/docs.git
fix: invalid go build with cache command
This commit is contained in:
parent
02dbedab22
commit
58c6c52e61
|
@ -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
|
||||
...
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue