mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +00:00
Dockerfile build args
This commit is contained in:
parent
6f09010d0d
commit
87856b06db
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue