add npm ci to dockerfile

This commit is contained in:
Salam-vsem
2025-05-18 12:02:15 +03:00
parent d168ce0935
commit a65390829f

View File

@@ -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