Skip to content

Commit

Permalink
feat: build bundler with cargo-auditable
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Jan 22, 2025
1 parent b2a01b2 commit 25b2404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bundler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM docker.io/library/rust:1.84.0-bookworm AS build

ARG DATABASE_URL

RUN cargo install cargo-auditable

WORKDIR /app

RUN cargo init
Expand All @@ -10,7 +12,7 @@ RUN cargo build --release

COPY ./ ./
RUN touch src/main.rs \
&& cargo build --release
&& cargo auditable build --release

FROM gcr.io/distroless/cc-debian12@sha256:f913198471738d9eedcd00c0ca812bf663e8959eebff3a3cbadb027ed9da0c38 AS deploy

Expand Down

0 comments on commit 25b2404

Please sign in to comment.