docker build staging
This commit is contained in:
parent
e1b228603e
commit
6ad52f8996
1 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,6 @@ RUN yarn build --dest /tmp/advent22_ui/html
|
||||||
ARG PYTHON_VERSION
|
ARG PYTHON_VERSION
|
||||||
FROM tiangolo/uvicorn-gunicorn:python${PYTHON_VERSION} AS production
|
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
|
|
||||||
|
|
||||||
# env setup
|
# env setup
|
||||||
WORKDIR /usr/local/src/advent22_api
|
WORKDIR /usr/local/src/advent22_api
|
||||||
ENV \
|
ENV \
|
||||||
|
@ -43,5 +40,8 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
python -m pip --no-cache-dir install ./
|
python -m pip --no-cache-dir install ./
|
||||||
|
|
||||||
|
# add prepared advent22_ui
|
||||||
|
COPY --from=build-ui /tmp/advent22_ui /usr/local/share/advent22_ui
|
||||||
|
|
||||||
# run as unprivileged user
|
# run as unprivileged user
|
||||||
USER nobody
|
USER nobody
|
||||||
|
|
Loading…
Reference in a new issue