Skip to content

Commit 0d6cdeb

Browse files
committed
switch to Debian-based Node image for better native module support
1 parent fbf02b4 commit 0d6cdeb

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

frontend/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use a specific Node version for consistency
2-
FROM node:18.20.2-alpine
1+
# Use a specific Node version for consistency (Debian-based for better native module support)
2+
FROM node:18.20.2
33

44
WORKDIR /app
55

@@ -13,9 +13,8 @@ COPY frontend ./frontend
1313
# Install all workspace dependencies at the monorepo root
1414
RUN npm ci
1515

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
16+
# Rebuild native modules for the current platform
17+
RUN npm rebuild
1918

2019
WORKDIR /app/frontend
2120

0 commit comments

Comments
 (0)