diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e059665..1243d23 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index f1ed6cb..df02c71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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