Skip to content

Commit

Permalink
🐳 config(docker): Allow to pass Debian version as a --build-arg.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 10, 2024
1 parent 7dca98d commit 6863a9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6863a9c

Please sign in to comment.