diff --git a/.woodpecker.yml b/.woodpecker.yml index 6d66ebc..9e26d74 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -19,6 +19,7 @@ pipeline: environment: - CARGO_HOME=.cargo commands: + - apk add musl-dev postgresql-dev - cargo build @@ -28,6 +29,7 @@ pipeline: environment: - CARGO_HOME=.cargo commands: + - apk add musl-dev postgresql-dev - cargo test @@ -38,6 +40,7 @@ pipeline: environment: - CARGO_HOME=.cargo commands: + - apk add musl-dev postgresql-dev - cargo fmt -- --check # This is run here because it requires compilation - cargo clippy --all-targets -- -D warnings diff --git a/Dockerfile b/Dockerfile index 2e886dd..8840167 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,12 @@ FROM rust:1.52-alpine3.13 AS builder WORKDIR /src +# Install build dependencies +RUN apk add --no-cache \ + musl-dev \ + postgresql-dev + +# Copy over source code COPY Cargo.toml Cargo.lock ./ COPY src ./src/