From ce29116e8829f085f9661f74f474cb6befefadd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Fri, 27 Oct 2023 15:10:25 +0000 Subject: [PATCH] Dockerfile build args --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5dd7dc0..f25cff9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ # build ui # ############ -FROM node:18.16 AS build-ui +ARG NODE_VERSION=18.16 +FROM node:${NODE_VERSION} AS build-ui # env setup WORKDIR /usr/local/src/advent22_ui @@ -19,7 +20,8 @@ RUN yarn build --dest /tmp/advent22_ui/html # web app # ########### -FROM tiangolo/uvicorn-gunicorn:python3.11-slim AS production +ARG PYTHON_VERSION=3.11 +FROM tiangolo/uvicorn-gunicorn:python${PYTHON_VERSION}-slim AS production # add prepared advent22_ui COPY --from=build-ui /tmp/advent22_ui /usr/local/share/advent22_ui