File tree Expand file tree Collapse file tree
connect-swift-mocks/v0.7.0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ FROM swift:5.8.1-focal AS build
44WORKDIR /app
55RUN git clone --depth 1 --branch 0.7.0 https://github.com/bufbuild/connect-swift
66WORKDIR /app/connect-swift
7+ RUN swift package resolve
78RUN swift build -c release --product protoc-gen-connect-swift-mocks --static-swift-stdlib -Xlinker -s
89
910FROM gcr.io/distroless/cc-debian11
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ FROM swift:5.8.1-focal AS build
44WORKDIR /app
55RUN git clone --depth 1 --branch 0.7.0 https://github.com/bufbuild/connect-swift
66WORKDIR /app/connect-swift
7+ RUN swift package resolve
78RUN swift build -c release --product protoc-gen-connect-swift --static-swift-stdlib -Xlinker -s
89
910FROM gcr.io/distroless/cc-debian11
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ ARG TARGETOS TARGETARCH
55ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
66
77RUN git clone --depth=1 --branch v5.3.0 https://github.com/roadrunner-server/grpc.git
8+ RUN --mount=type=cache,target=/go/pkg/mod \
9+ cd grpc/protoc_plugins/protoc-gen-php-grpc \
10+ && go mod download
811RUN --mount=type=cache,target=/go/pkg/mod \
912 cd grpc/protoc_plugins/protoc-gen-php-grpc \
1013 && go install -ldflags="-s -w" -trimpath \
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ WORKDIR /tmp/grpc-go
1010COPY separate-package.patch /tmp/grpc-go
1111RUN git apply separate-package.patch
1212WORKDIR /tmp/grpc-go/cmd/protoc-gen-go-grpc
13+ RUN --mount=type=cache,target=/go/pkg/mod \
14+ go mod download
1315RUN --mount=type=cache,target=/go/pkg/mod \
1416 go build -o protoc-gen-go-grpc -ldflags "-s -w" -trimpath
1517
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ WORKDIR /app
77RUN git clone --depth 1 --branch 2.2.1 https://github.com/grpc/grpc-swift-protobuf --recursive
88WORKDIR /app/grpc-swift-protobuf
99COPY --link Package.resolved .
10+ RUN swift package resolve --force-resolved-versions
1011RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift-2 -Xlinker -s --force-resolved-versions
1112
1213FROM gcr.io/distroless/cc-debian12:latest@sha256:329e54034ce498f9c6b345044e8f530c6691f99e94a92446f68c0adf9baa8464 AS base
You can’t perform that action at this time.
0 commit comments