sosituito npm ci con npm install

This commit is contained in:
2025-12-07 10:27:37 +01:00
committed by GitHub
parent 3718be7dcd
commit b41bc3d2fa

View File

@@ -2,7 +2,7 @@
FROM node:20-alpine as build FROM node:20-alpine as build
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm install
COPY . . COPY . .
RUN npm run build RUN npm run build
@@ -12,3 +12,4 @@ COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]