2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-22 01:58:54 +00:00

npm i in the Dockerfile to esnure we have what we need to build + test (#1557)

This commit is contained in:
Adam Weeden 2023-08-03 17:44:36 -04:00 committed by GitHub
parent dea954bea8
commit c39932731d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
FROM node:lts-alpine FROM --platform=linux/amd64 node:lts-alpine
LABEL description="Alpine image to build Nativefier apps" 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) # Run tests (to ensure we don't Docker build & publish broken stuff)
# Cleanup leftover files in this step to not waste Docker layer space # Cleanup leftover files in this step to not waste Docker layer space
# Make sure nativefier is executable # Make sure nativefier is executable
RUN npm link \ RUN npm i \
&& npm link \
&& npm run test:noplaywright \ && npm run test:noplaywright \
&& rm -rf /tmp/nativefier* ~/.npm/_cacache ~/.cache/electron \ && rm -rf /tmp/nativefier* ~/.npm/_cacache ~/.cache/electron \
&& chmod +x $NPM_PACKAGES/bin/nativefier && chmod +x $NPM_PACKAGES/bin/nativefier