File tree 1 file changed +2
-1
lines changed
src/productcatalogservice
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5
5
FROM registry.ddbuild.io/images/mirror/golang:1.22-alpine AS builder
6
6
7
7
WORKDIR /usr/src/app/
8
+ RUN chmod 777 /usr/src/app
8
9
9
10
RUN apk update \
10
11
&& apk add --no-cache make protobuf-dev
@@ -14,7 +15,7 @@ RUN --mount=type=cache,target=/go/pkg/mod/ \
14
15
--mount=type=bind,source=./src/productcatalogservice/go.mod,target=go.mod \
15
16
--mount=type=bind,source=./src/productcatalogservice/tools.go,target=tools.go \
16
17
go mod download \
17
- && go list -e -f '{{range .Imports}}{{.}} {{end}}' tools.go | CGO_ENABLED=0 xargs go install
18
+ && go list -e -f '{{range .Imports}}{{.}} {{end}}' tools.go | CGO_ENABLED=0 xargs go install -mod=readonly
18
19
19
20
RUN --mount=type=cache,target=/go/pkg/mod/ \
20
21
--mount=type=cache,target=/root/.cache/go-build \
You can’t perform that action at this time.
0 commit comments