Skip to content

Commit 82631d3

Browse files
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).
1 parent 92d7fb1 commit 82631d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ LABEL \
2828
org.opencontainers.image.source="https://github.com/mendhak/docker-http-https-echo" \
2929
org.opencontainers.image.licenses="MIT"
3030
WORKDIR /app
31+
RUN rm -rf /usr/local/lib/node_modules
3132
COPY --from=build /app /app
3233
ENV HTTP_PORT=8080 HTTPS_PORT=8443
3334
EXPOSE $HTTP_PORT $HTTPS_PORT

0 commit comments

Comments
 (0)