From 055f6af4590a46df1ef1d4de62142ae2d76a4a4d Mon Sep 17 00:00:00 2001 From: Richard Kettelerij Date: Mon, 8 Jul 2024 22:23:26 +0200 Subject: [PATCH] chore(viewer): Fix Dockerfile --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c79f3569..3a305819 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,11 +55,8 @@ COPY --from=build-env /gokoala / COPY --from=build-env /go/src/service/assets/ /assets/ COPY --from=build-env /go/src/service/internal/ /internal/ -# include view-component webcomponent as asset -COPY --from=build-component /usr/src/app/dist/view-component/styles.css /assets/view-component/styles.css -COPY --from=build-component /usr/src/app/dist/view-component/main.js /assets/view-component/main.js -COPY --from=build-component /usr/src/app/dist/view-component/polyfills.js /assets/view-component/polyfills.js -COPY --from=build-component /usr/src/app/dist/view-component/runtime.js /assets/view-component/runtime.js +# include viewer as asset +COPY --from=build-component /usr/src/app/dist/view-component/browser/ /assets/view-component/ COPY --from=build-component /usr/src/app/dist/view-component/3rdpartylicenses.txt /assets/view-component/3rdpartylicenses.txt # run as non-root