Skip to content

Commit

Permalink
Modernize Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanburen committed Feb 19, 2025
1 parent e6a8837 commit 1ab291d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/grpc/swift-protobuf/v1.0.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# syntax=docker/dockerfile:1.12
FROM swift:6.0.3-bookworm AS build

# RUN apt-get update \
# && apt-get install -y libstdc++-12-dev
WORKDIR /app
RUN git clone --depth 1 --branch 1.0.0 https://github.com/grpc/grpc-swift-protobuf --recursive
WORKDIR /app/grpc-swift-protobuf
RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift -Xlinker -s

FROM gcr.io/distroless/cc-debian12:latest@sha256:3310655aac0d85eb9d579792387af1ff3eb7a1667823478be58020ab0e0d97a8 AS base
FROM gcr.io/distroless/cc-debian12:latest@sha256:b7550f0b15838de14c564337eef2b804ba593ae55d81ca855421bd52f19bb480 AS base

FROM scratch
COPY --link --from=base / /
Expand Down

0 comments on commit 1ab291d

Please sign in to comment.