We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbf02b4 commit 0d6cdebCopy full SHA for 0d6cdeb
1 file changed
frontend/Dockerfile
@@ -1,5 +1,5 @@
1
-# Use a specific Node version for consistency
2
-FROM node:18.20.2-alpine
+# Use a specific Node version for consistency (Debian-based for better native module support)
+FROM node:18.20.2
3
4
WORKDIR /app
5
@@ -13,9 +13,8 @@ COPY frontend ./frontend
13
# Install all workspace dependencies at the monorepo root
14
RUN npm ci
15
16
-# HACK: Force install the native rollup binary for Alpine Linux to fix npm bug
17
-# See: https://github.com/npm/cli/issues/4828
18
-RUN npm install --save-dev --arch=x64 --platform=linux --libc=musl rollup
+# Rebuild native modules for the current platform
+RUN npm rebuild
19
20
WORKDIR /app/frontend
21
0 commit comments