From f2e8a9373d01529a24a1f9f5e75ad9186b1eee43 Mon Sep 17 00:00:00 2001 From: Daniil Isakov <12859907+oplexz@users.noreply.github.com> Date: Fri, 12 Jan 2024 16:26:26 +0300 Subject: [PATCH] Dockerfile: Automatically build static files for Web UI --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ca427af2..ad00eceb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,10 @@ RUN npm ci --omit=dev &&\ # This saves a lot of disk space. FROM docker.io/library/node:20-alpine HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3 + +# Copy the server files and the built static files COPY --from=build_node_modules /app /app +COPY --from=build_node_modules /webui/dist /app/www # Move node_modules one directory up, so during development # we don't have to mount it in a volume.