Skip to content

Commit

Permalink
ci: improve build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Nov 10, 2024
1 parent 42852ac commit ed715d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM rust:1.82.0-alpine3.20 AS base
WORKDIR /app
RUN apk add --no-cache musl-dev

FROM base AS src
COPY . .

FROM base AS test
FROM src AS test
RUN cargo check && cargo test

FROM base AS builder
FROM src AS builder
RUN cargo build --release

FROM alpine:3.20
Expand Down

0 comments on commit ed715d7

Please sign in to comment.