Skip to content

Commit 5ef6f8d

Browse files
committed
Trying to add permissions
1 parent 90e1e69 commit 5ef6f8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/productcatalogservice/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
FROM registry.ddbuild.io/images/mirror/golang:1.22-alpine AS builder
66

77
WORKDIR /usr/src/app/
8+
RUN chmod 777 /usr/src/app
89

910
RUN apk update \
1011
&& apk add --no-cache make protobuf-dev
@@ -14,7 +15,7 @@ RUN --mount=type=cache,target=/go/pkg/mod/ \
1415
--mount=type=bind,source=./src/productcatalogservice/go.mod,target=go.mod \
1516
--mount=type=bind,source=./src/productcatalogservice/tools.go,target=tools.go \
1617
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
1819

1920
RUN --mount=type=cache,target=/go/pkg/mod/ \
2021
--mount=type=cache,target=/root/.cache/go-build \

0 commit comments

Comments
 (0)