Lockfiles + npm ci en Dockerfiles

- package-lock.json en backend y frontend (lockfileVersion 3).
- Dockerfiles ahora copian el lockfile y usan `npm ci` en vez de
  `npm install` para builds reproducibles.
This commit is contained in:
Jorem Juárez committed 2026-05-26 13:32:59 -06:00
1 parent 2b2982eff4
commit f385ce709b
4 files changed
+3298 -4

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@ FROM node:20-slim
WORKDIR /app
# Dependencias primero (mejor cacheo de capas)
COPY package.json ./
RUN npm install --omit=dev
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
# Código
COPY server.js schema.sql ./
+1604
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -1,8 +1,8 @@
# ── Etapa 1: build del frontend ──
FROM node:20-slim AS build
WORKDIR /app
COPY package.json ./
RUN npm install
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
+1690
View File
File diff suppressed because it is too large. Load diff