From 26ee2dd43c23cc4187579a767516dec0a4dc4653 Mon Sep 17 00:00:00 2001 From: Leon White Date: Sun, 9 Jun 2024 14:31:27 +0200 Subject: [PATCH] chore: update to alpine 3.20 --- Dockerfile | 102 +++++++++++++++++++++++++---------------------------- deps.list | 18 +++++----- 2 files changed, 57 insertions(+), 63 deletions(-) diff --git a/Dockerfile b/Dockerfile index d141d9bd..7f168324 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# syntax=docker/dockerfile:1.4 +# syntax=docker/dockerfile:1 ARG ALPINE_IMAGE_VERSION ARG DART_IMAGE_VERSION @@ -191,12 +191,18 @@ RUN xx-verify /out/usr/bin/protoc-gen-jsonschema FROM alpine:${ALPINE_IMAGE_VERSION} as grpc_web RUN apk add --no-cache \ + autoconf \ + automake \ build-base \ - curl \ - protobuf-dev -RUN mkdir -p /grpc-web + git \ + libtool ARG GRPC_WEB_VERSION -RUN curl -sSL https://api.github.com/repos/grpc/grpc-web/tarball/${GRPC_WEB_VERSION} | tar xz --strip 1 -C /grpc-web +RUN git clone --recurse-submodules --branch=$GRPC_WEB_VERSION https://github.com/grpc/grpc-web.git +WORKDIR /grpc-web/third_party/protobuf +RUN ./autogen.sh && \ + ./configure && \ + make -j$(nproc) && \ + make install WORKDIR /grpc-web RUN make -j$(nproc) install-plugin RUN install -Ds /usr/local/bin/protoc-gen-grpc-web /out/usr/bin/protoc-gen-grpc-web @@ -256,12 +262,6 @@ RUN apt-get install -y \ ARG TARGETOS TARGETARCH GRPC_SWIFT_VERSION RUN <