Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
npm i in the Dockerfile to esnure we have what we need to build + t…
Browse files Browse the repository at this point in the history
…est (#1557)
  • Loading branch information
TheCleric committed Aug 3, 2023
1 parent dea954b commit c399327
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine
FROM --platform=linux/amd64 node:lts-alpine
LABEL description="Alpine image to build Nativefier apps"


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c399327

Please sign in to comment.