Dockerfile build args

This commit is contained in:
Jörn-Michael Miehe 2023-10-27 15:42:11 +00:00
parent 6f09010d0d
commit 87856b06db

View file

@ -3,6 +3,7 @@
############
ARG NODE_VERSION=18.16
ARG PYTHON_VERSION=3.11-slim
FROM node:${NODE_VERSION} AS build-ui
# env setup
@ -20,8 +21,8 @@ RUN yarn build --dest /tmp/advent22_ui/html
# web app #
###########
ARG PYTHON_VERSION=3.11
FROM tiangolo/uvicorn-gunicorn:python${PYTHON_VERSION}-slim AS production
ARG PYTHON_VERSION
FROM tiangolo/uvicorn-gunicorn:python${PYTHON_VERSION} AS production
# add prepared advent22_ui
COPY --from=build-ui /tmp/advent22_ui /usr/local/share/advent22_ui