From c39932731d1d9016c09c83228cefe9a2cdf9fde7 Mon Sep 17 00:00:00 2001 From: Adam Weeden Date: Thu, 3 Aug 2023 17:44:36 -0400 Subject: [PATCH] `npm i` in the Dockerfile to esnure we have what we need to build + test (#1557) --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 826e802..4968720 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts-alpine +FROM --platform=linux/amd64 node:lts-alpine LABEL description="Alpine image to build Nativefier apps" @@ -31,7 +31,8 @@ RUN find ./icon-scripts ./src ./app -type f -print0 | xargs -0 dos2unix # Run tests (to ensure we don't Docker build & publish broken stuff) # Cleanup leftover files in this step to not waste Docker layer space # Make sure nativefier is executable -RUN npm link \ +RUN npm i \ + && npm link \ && npm run test:noplaywright \ && rm -rf /tmp/nativefier* ~/.npm/_cacache ~/.cache/electron \ && chmod +x $NPM_PACKAGES/bin/nativefier