Add protobuf compiler to CI and Docker build

This commit is contained in:
Graham McIntire 2026-01-13 13:55:12 -06:00
parent 75b3b92adc
commit 82f97deeb2
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View file

@ -19,7 +19,7 @@ test:
stage: test
image: rust:1.83-alpine
before_script:
- apk add --no-cache musl-dev
- apk add --no-cache musl-dev protobuf-dev
- rustup component add rustfmt clippy
script:
- cargo check --release

View file

@ -4,10 +4,11 @@ FROM rust:1.83-alpine AS builder
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache musl-dev
RUN apk add --no-cache musl-dev protobuf-dev
# Copy manifests
COPY Cargo.toml Cargo.lock ./
# Copy manifests and build files
COPY Cargo.toml Cargo.lock build.rs ./
COPY proto ./proto
# Create a dummy main.rs to build dependencies
RUN mkdir src && echo "fn main() {}" > src/main.rs