chore: docker cache

This commit is contained in:
Zheng Kai
2023-09-04 16:23:33 +08:00
parent 32585e61d0
commit fb96717e94
4 changed files with 15 additions and 92 deletions

View File

@@ -9,7 +9,9 @@ RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31.0
COPY . /project
RUN /project/server/build/build-server.sh prod
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
/project/server/build/build-server.sh prod
# clean stage