File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,14 @@ WORKDIR /app
77COPY 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)
1615COPY ui/ ./
1716
18- # Build the application for linux/amd64  (with node adapter)
17+ # Build the application (with node adapter)
1918RUN npm run build
2019
2120# Production stage
@@ -26,8 +25,9 @@ WORKDIR /app
2625# Copy package file
2726COPY 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
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments