add npm ci to dockerfile
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
FROM node:lts AS build
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files first to leverage cache
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
|
||||
# Copy remaining files
|
||||
COPY . .
|
||||
RUN npm i
|
||||
RUN npm run build
|
||||
|
||||
FROM httpd:2.4 AS runtime
|
||||
|
||||
Reference in New Issue
Block a user