From f0104e28b606fe1d7561304c6d10b4d0c7c1ed95 Mon Sep 17 00:00:00 2001 From: Scot Lunsford Date: Wed, 20 May 2026 16:28:47 -0500 Subject: [PATCH 1/2] Add live reload frontend dev image --- Dockerfile | 19 ++++++++++++++++++- .../landing-page/landing-page.component.html | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8a3a01dcc..801181976 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,20 @@ +FROM node:22-alpine AS dev + +WORKDIR /workspace + +COPY package*.json ./ +RUN npm ci + +COPY . . +RUN mkdir -p /workspace-seed && cp -R src /workspace-seed/src + +# Polling makes file watching reliable with Docker bind mounts. +ENV CHOKIDAR_USEPOLLING=true + +EXPOSE 80 4200 + +CMD ["sh", "-c", "if [ ! -f src/main.ts ]; then cp -R /workspace-seed/src/. src/; fi; exec npm start -- --host 0.0.0.0 --port 80 --poll 1000"] + FROM --platform=${BUILDPLATFORM} node:22-alpine AS build WORKDIR /workspace @@ -51,4 +68,4 @@ COPY --from=build /workspace/dist/app/browser /usr/share/nginx/html EXPOSE 80 443 # Command to run NGINX in foreground -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;"] diff --git a/src/app/views/landing-page/landing-page.component.html b/src/app/views/landing-page/landing-page.component.html index 7bb38dc70..e968c1c34 100644 --- a/src/app/views/landing-page/landing-page.component.html +++ b/src/app/views/landing-page/landing-page.component.html @@ -9,7 +9,7 @@

ATT&CK Workbench

-

Explore

+

Explore Live

From 47aa499e8342c69dc2d1ce3abb37ad2ff5fc522b Mon Sep 17 00:00:00 2001 From: Scot Lunsford Date: Wed, 20 May 2026 16:29:01 -0500 Subject: [PATCH 2/2] Back out live reload demo marker --- src/app/views/landing-page/landing-page.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/views/landing-page/landing-page.component.html b/src/app/views/landing-page/landing-page.component.html index e968c1c34..7bb38dc70 100644 --- a/src/app/views/landing-page/landing-page.component.html +++ b/src/app/views/landing-page/landing-page.component.html @@ -9,7 +9,7 @@

ATT&CK Workbench

-

Explore Live

+

Explore