From 82631d36133625ba751a58b1951e358674b4f9b3 Mon Sep 17 00:00:00 2001 From: Willy Guggenheim <10598011+willyguggenheim@users.noreply.github.com> Date: Tue, 18 Nov 2025 15:06:27 -0800 Subject: [PATCH] Smaller Runtime Image & Solve CVE-2025-64756 Remove unnecessary global node modules to reduce image size. Solve CVE-2025-64756 found in base image within unused `node_modules` tooling folder (not used in runtime image). --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 6e7cc65..5fa2048 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,7 @@ LABEL \ org.opencontainers.image.source="https://github.com/mendhak/docker-http-https-echo" \ org.opencontainers.image.licenses="MIT" WORKDIR /app +RUN rm -rf /usr/local/lib/node_modules COPY --from=build /app /app ENV HTTP_PORT=8080 HTTPS_PORT=8443 EXPOSE $HTTP_PORT $HTTPS_PORT