From 6ad52f899683459a77058bf25bf25521ea9c6ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sun, 29 Oct 2023 17:28:34 +0100 Subject: [PATCH] docker build staging --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e771921..73a52dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,9 +24,6 @@ RUN yarn build --dest /tmp/advent22_ui/html 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 - # env setup WORKDIR /usr/local/src/advent22_api ENV \ @@ -43,5 +40,8 @@ RUN set -ex; \ \ 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 USER nobody