From 28592aa7f3903710441f941e5ef89d8679ee6d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8F=94=EF=B8=8F=20Peak?= <122374094+peaklabs-dev@users.noreply.github.com> Date: Mon, 23 Dec 2024 21:46:12 +0100 Subject: [PATCH] fix: literally fixing NPM (#112) * fix: Dockerfile * fix: literally fixing NPM https://github.com/npm/cli/issues/4828 --- Dockerfile | 3 ++- package-lock.json | 17 +++++++++++++++++ package.json | 10 +++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95cf10b..3e1409f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM node:lts-alpine AS build WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm install --platform=linux --arch=arm64 + COPY . . RUN npm install --platform=linux --arch=arm64 diff --git a/package-lock.json b/package-lock.json index c89d60c..42037ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,11 +11,15 @@ "@astrojs/sitemap": "^3.2.1", "@astrojs/starlight": "^0.28.4", "@astrojs/starlight-tailwind": "^2.0.3", + "@rollup/rollup-linux-x64-gnu": "*", "astro": "^4.16.18", "sharp": "^0.33.5", "starlight-image-zoom": "^0.8.0", "starlight-links-validator": "^0.12.3", "starlight-openapi": "^0.8.1" + }, + "optionalDependencies": { + "@rollup/rollup-linux-x64-gnu": "^4.29.1" } }, "node_modules/@alloc/quick-lru": { @@ -1034,6 +1038,19 @@ "darwin" ] }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.29.1.tgz", + "integrity": "sha512-87xYCwb0cPGZFoGiErT1eDcssByaLX4fc0z2nRM6eMtV9njAfEE6OW3UniAoDhX4Iq5xQVpE6qO9aJbCFumKYQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, "node_modules/@shikijs/core": { "version": "1.24.4", "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-1.24.4.tgz", diff --git a/package.json b/package.json index 78e0688..357572b 100644 --- a/package.json +++ b/package.json @@ -18,5 +18,13 @@ "starlight-image-zoom": "^0.8.0", "starlight-links-validator": "^0.12.3", "starlight-openapi": "^0.8.1" + }, + "optionalDependencies": { + "@rollup/rollup-linux-x64-gnu": "4.9.5", + "@rollup/rollup-linux-x64-musl": "4.9.5", + "@rollup/rollup-linux-arm64-gnu": "4.9.5", + "@rollup/rollup-linux-arm64-musl": "4.9.5", + "@rollup/rollup-darwin-x64": "4.9.5", + "@rollup/rollup-darwin-arm64": "4.9.5" } -} \ No newline at end of file +}