mirror of https://github.com/0xERR0R/blocky.git
cache lock
This commit is contained in:
parent
285eda477d
commit
0136755f4a
|
@ -31,7 +31,8 @@ WORKDIR /src
|
|||
|
||||
# get go modules
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
RUN --mount=type=cache,target=/root/go/pkg,sharing=locked \
|
||||
go mod download
|
||||
|
||||
# add source
|
||||
ADD . .
|
||||
|
@ -42,7 +43,7 @@ ENV GO111MODULE=on
|
|||
ENV CGO_ENABLED=0
|
||||
|
||||
# build binary
|
||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||
RUN --mount=type=cache,target=/root/.cache/go-build,sharing=locked \
|
||||
go build \
|
||||
-tags static \
|
||||
-v \
|
||||
|
|
Loading…
Reference in New Issue