This commit is contained in:
2026-03-27 23:50:18 -05:00
parent 219ab15273
commit 5cd5f5d4f2

View File

@@ -3,7 +3,7 @@ FROM node:20-slim AS frontend-builder
WORKDIR /build/frontend WORKDIR /build/frontend
COPY frontend/package*.json ./ COPY frontend/package*.json ./
RUN npm ci RUN npm install
COPY frontend/ ./ COPY frontend/ ./
RUN npm run build RUN npm run build
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y \
WORKDIR /build/backend WORKDIR /build/backend
COPY backend/package*.json backend/tsconfig.json ./ COPY backend/package*.json backend/tsconfig.json ./
RUN npm ci RUN npm install
COPY backend/src ./src COPY backend/src ./src
RUN npm run build && npm prune --production RUN npm run build && npm prune --production