Replace npm ci with npm install to fix Docker build issues
This commit is contained in:
parent
3b9370b965
commit
60b916b883
@ -5,7 +5,7 @@ WORKDIR /app
|
||||
|
||||
# Install all deps for build
|
||||
COPY package*.json ./
|
||||
RUN npm ci && npm cache clean --force
|
||||
RUN npm install && npm cache clean --force
|
||||
|
||||
# Build frontend
|
||||
COPY . .
|
||||
@ -22,7 +22,7 @@ RUN apk add --no-cache curl
|
||||
|
||||
# Copy package.json and production dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm ci --only=production && npm cache clean --force
|
||||
RUN npm install --omit=dev && npm cache clean --force
|
||||
|
||||
# Copy server files and built frontend
|
||||
COPY server ./server
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user