Skip to content

Commit af863d7

Browse files
committed
adjust arch lock
1 parent 6f174cd commit af863d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile_ui

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ WORKDIR /app
77
COPY ui/package.json ./
88

99
# Install dependencies first
10-
# Explicitly tell npm to install for linux/amd64 platform (for cloud deployment)
11-
# This ensures correct optional dependencies like @rollup/rollup-linux-x64-musl
12-
RUN npm install --cpu=x64 --os=linux --libc=musl && \
10+
# npm will automatically install correct platform-specific binaries (amd64 or arm64)
11+
RUN npm install && \
1312
npm cache clean --force
1413

1514
# Copy source code (node_modules excluded via .dockerignore)
1615
COPY ui/ ./
1716

18-
# Build the application for linux/amd64 (with node adapter)
17+
# Build the application (with node adapter)
1918
RUN npm run build
2019

2120
# Production stage
@@ -26,8 +25,9 @@ WORKDIR /app
2625
# Copy package file
2726
COPY ui/package.json ./
2827

29-
# Install production dependencies only for linux/amd64
30-
RUN npm install --omit=dev --cpu=x64 --os=linux --libc=musl && \
28+
# Install production dependencies only
29+
# npm will automatically install correct platform-specific binaries (amd64 or arm64)
30+
RUN npm install --omit=dev && \
3131
npm cache clean --force
3232

3333
# Copy built application and server entry from builder

0 commit comments

Comments
 (0)