1
0
mirror of https://github.com/CCC-MF/bwhc-kafka-rest-proxy.git synced 2025-04-19 19:16:51 +00:00

build: run tests before release build in Dockerfile

This commit is contained in:
Paul-Christian Volkmer 2024-03-09 11:37:43 +01:00
parent 976c86d043
commit 85ba709709

View File

@ -6,6 +6,8 @@ RUN apk add cmake make musl-dev g++
WORKDIR /build WORKDIR /build
COPY Cargo.toml ./ COPY Cargo.toml ./
COPY src ./src COPY src ./src
# Run tests before release build
RUN cargo test --release
RUN cargo build --release RUN cargo build --release
# Build image from scratch # Build image from scratch