Skip to content

Commit

Permalink
Merge pull request #1047 from fabriziosestito/fix/cargo-lock-ignored-…
Browse files Browse the repository at this point in the history
…dockerfile

fix: cargo install ignoring Cargo.lock
  • Loading branch information
flavio authored Jan 23, 2025
2 parents 6fd5f0a + 3330629 commit ca9876c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ WORKDIR /usr/src/policy-server
COPY ./ ./

RUN cargo install cargo-auditable
RUN cargo auditable install --target aarch64-unknown-linux-musl --path .
RUN cargo auditable install --locked --target aarch64-unknown-linux-musl --path .

FROM --platform=${BUILDPLATFORM} ghcr.io/cross-rs/x86_64-unknown-linux-musl:0.2.5 AS build-amd64
ARG BUILDPLATFORM
Expand All @@ -32,7 +32,7 @@ WORKDIR /usr/src/policy-server
COPY ./ ./

RUN cargo install cargo-auditable
RUN cargo auditable install --target x86_64-unknown-linux-musl --path .
RUN cargo auditable install --locked --target x86_64-unknown-linux-musl --path .

FROM --platform=$BUILDPLATFORM alpine:3.21.2 AS cfg
RUN echo "policy-server:x:65533:65533::/tmp:/sbin/nologin" >> /etc/passwd
Expand Down

0 comments on commit ca9876c

Please sign in to comment.