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 NODE_VERSION=18.16
|
||||||
|
ARG PYTHON_VERSION=3.11-slim
|
||||||
FROM node:${NODE_VERSION} AS build-ui
|
FROM node:${NODE_VERSION} AS build-ui
|
||||||
|
|
||||||
# env setup
|
# env setup
|
||||||
|
@ -20,8 +21,8 @@ RUN yarn build --dest /tmp/advent22_ui/html
|
||||||
# web app #
|
# web app #
|
||||||
###########
|
###########
|
||||||
|
|
||||||
ARG PYTHON_VERSION=3.11
|
ARG PYTHON_VERSION
|
||||||
FROM tiangolo/uvicorn-gunicorn:python${PYTHON_VERSION}-slim AS production
|
FROM tiangolo/uvicorn-gunicorn:python${PYTHON_VERSION} AS production
|
||||||
|
|
||||||
# add prepared advent22_ui
|
# add prepared advent22_ui
|
||||||
COPY --from=build-ui /tmp/advent22_ui /usr/local/share/advent22_ui
|
COPY --from=build-ui /tmp/advent22_ui /usr/local/share/advent22_ui
|
||||||
|
|
Loading…
Reference in a new issue