Updated Dockerfile
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -2,13 +2,13 @@
|
|||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy dependency configurations
|
# Copy ONLY package.json to avoid pulling in local lockfile restrictions
|
||||||
COPY package*.json ./
|
COPY package.json ./
|
||||||
|
|
||||||
# Install all dependencies (including devDependencies needed for building)
|
# Fresh install inside Alpine ensures correct native platform binaries (Rolldown Rust bindings)
|
||||||
RUN npm ci
|
RUN npm install
|
||||||
|
|
||||||
# Copy the rest of the application source code
|
# Now copy the rest of your repository source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the production application
|
# Build the production application
|
||||||
|
|||||||
Reference in New Issue
Block a user