Fix: Use npm install instead of npm ci to avoid lock file requirement
This commit is contained in:
@@ -8,7 +8,7 @@ WORKDIR /app/client
|
|||||||
COPY client/package*.json ./
|
COPY client/package*.json ./
|
||||||
|
|
||||||
# Install frontend dependencies
|
# Install frontend dependencies
|
||||||
RUN npm ci --production=false
|
RUN npm install
|
||||||
|
|
||||||
# Copy frontend source
|
# Copy frontend source
|
||||||
COPY client/ ./
|
COPY client/ ./
|
||||||
@@ -31,8 +31,8 @@ WORKDIR /app
|
|||||||
# Copy root package files
|
# Copy root package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install production dependencies only
|
# Install production dependencies
|
||||||
RUN npm ci --production
|
RUN npm install --omit=dev
|
||||||
|
|
||||||
# Copy server code
|
# Copy server code
|
||||||
COPY server/ ./server/
|
COPY server/ ./server/
|
||||||
|
|||||||
Reference in New Issue
Block a user