From dc732efdb7ecabf21a724ee886fc3884ebc39732 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 26 Feb 2022 21:59:05 -0700 Subject: [PATCH] feature(dockerfile): multi-stage build - install node dependencies in builder stage - final stage based on alpine with minimal nodejs installation - npm not present, prevents idiotic lingering security issues - 50% smaller final image --- .run/build_Dockerfile.run.xml | 4 ++-- build/Dockerfile | 40 +++++++++++++++++------------------ build/package.json | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.run/build_Dockerfile.run.xml b/.run/build_Dockerfile.run.xml index 76d900c..58c0f80 100644 --- a/.run/build_Dockerfile.run.xml +++ b/.run/build_Dockerfile.run.xml @@ -7,11 +7,11 @@