Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ FROM chef AS planner
# prepare recipe
COPY Cargo.toml Cargo.lock ./
COPY crates crates
COPY tools tools
COPY proto proto
COPY migrations migrations
RUN cargo chef prepare --recipe-path recipe.json
RUN cargo chef prepare --bin defguard --recipe-path recipe.json

FROM chef AS builder
# build deps from recipe & cache as docker layer
COPY --from=planner /build/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
RUN cargo chef cook --bin defguard --release --recipe-path recipe.json

# build project
COPY --from=web /app/dist ./web/dist
Expand Down
Loading