From 0c43d9df925d6f3299d08f7a03b43a9e866ab452 Mon Sep 17 00:00:00 2001 From: michael1011 Date: Sat, 2 Nov 2024 00:19:02 +0100 Subject: [PATCH] fix: Docker build on arm64 --- .dockerignore | 1 + Dockerfile | 2 ++ package.json | 5 +++++ 3 files changed, 8 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..c2658d7d --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules/ diff --git a/Dockerfile b/Dockerfile index dc6590f5..e046bef8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM node:20 AS builder +RUN npm i -g npm + WORKDIR /app COPY package.json package-lock.json ./ diff --git a/package.json b/package.json index b98c082a..7d9c8363 100644 --- a/package.json +++ b/package.json @@ -82,5 +82,10 @@ "qrcode": "^1.5.4", "solid-icons": "^1.1.0", "solid-js": "^1.8.21" + }, + "overrides": { + "vite": { + "rollup": "npm:@rollup/wasm-node" + } } }