From 6863a9c9cf77c20b95b38f0d3f4c018574db4499 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again <5165674+make-github-pseudonymous-again@users.noreply.github.com> Date: Wed, 10 Apr 2024 22:28:18 +0200 Subject: [PATCH] :whale: config(docker): Allow to pass Debian version as a `--build-arg`. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 114b6ee70..a56e4f26a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -ARG IMAGE_BASE=debian:11-slim +ARG DEBIAN_VERSION=11 # NOTE Build stage -FROM $IMAGE_BASE AS build +FROM debian:${DEBIAN_VERSION}-slim AS build # NOTE Install build tools @@ -93,7 +93,7 @@ RUN cd dist/bundle/programs/server && \ RUN find . -maxdepth 3 -FROM gcr.io/distroless/cc-debian11 +FROM gcr.io/distroless/cc-debian${DEBIAN_VERSION} COPY --from=build /etc/passwd /etc/passwd COPY --from=build --chown=app:app /home/app/dist/bundle /home/app/dist