Skip to content

Commit

Permalink
Add DEBIAN_RELEASE Docker build-arg
Browse files Browse the repository at this point in the history
  • Loading branch information
alisinabh committed May 1, 2024
1 parent 5094b02 commit 808c30a
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,4 +1,6 @@
FROM rust:1-bookworm AS builder
ARG DEBIAN_RELEASE=bookworm

FROM rust:1-$DEBIAN_RELEASE AS builder

WORKDIR /app

Expand All @@ -7,7 +9,7 @@ COPY Cargo.* ./

RUN cargo build --release

FROM debian:bookworm-slim
FROM debian:$DEBIAN_RELEASE-slim

RUN apt-get update && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 808c30a

Please sign in to comment.