content: # syntax=docker/dockerfile:1.4
  
  FROM ghcr.io/cross-rs/x86_64-unknown-linux-musl:0.2.5
  
  ENV PROTOBUF_VERSION 21.11
  
  RUN --mount=type=cache,target=/var/cache/apt/archives --mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
      apt-get update -y && \
      apt-get upgrade -y && \
      apt-get install -y --no-install-recommends curl unzip && \
      curl -fsSL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip -o /tmp/protoc.zip && \
      unzip -o /tmp/protoc.zip -d /usr/local && \
      rm /tmp/protoc.zip
  