From 808c30a76157d5e8f07da734bec59d022694e72c Mon Sep 17 00:00:00 2001 From: Alisina Bahadori Date: Mon, 29 Apr 2024 23:52:58 -0400 Subject: [PATCH] Add DEBIAN_RELEASE Docker build-arg --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d016a64..f53a955 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM rust:1-bookworm AS builder +ARG DEBIAN_RELEASE=bookworm + +FROM rust:1-$DEBIAN_RELEASE AS builder WORKDIR /app @@ -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/*