From a76bef1a2888478c546015fe6e66365685cb0d00 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 21 Nov 2022 21:15:04 +0100 Subject: [PATCH] docker should use webpacked frontend files, fixes #3322 --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index dd2a2a357..0b0e8f0d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,11 @@ RUN apk add --no-cache su-exec shadow # Bundle app source COPY . . +RUN sed -i -e 's/app\/desktop.js/app-dist\/desktop.js/g' src/views/desktop.ejs && \ + sed -i -e 's/app\/mobile.js/app-dist\/mobile.js/g' src/views/mobile.ejs && \ + sed -i -e 's/app\/setup.js/app-dist\/setup.js/g' src/views/setup.ejs && \ + sed -i -e 's/app\/share.js/app-dist\/share.js/g' src/views/share/*.ejs + # Add application user and setup proper volume permissions RUN adduser -s /bin/false node; exit 0