From 8093b78af157d191a76c0b213b8630ab4a2e35e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Wed, 20 Sep 2023 19:04:43 +0200 Subject: [PATCH] Dockerfile caching optimization --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed0e14a..5dd7dc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,9 @@ RUN yarn build --dest /tmp/advent22_ui/html FROM tiangolo/uvicorn-gunicorn:python3.11-slim 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 \ @@ -37,8 +40,5 @@ 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