This commit is contained in:
2026-03-28 01:09:25 -05:00
parent ecb708790d
commit 3761e2cf52

View File

@@ -3,7 +3,7 @@ FROM node:20-alpine AS frontend-build
WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm ci
RUN npm install
COPY frontend/ ./
RUN npm run build
@@ -14,7 +14,7 @@ FROM node:20-alpine AS backend-build
WORKDIR /app/backend
COPY backend/package*.json ./
RUN npm ci
RUN npm install
COPY backend/ ./
# Copy the built frontend into backend/public before TS compile (static refs)
@@ -27,7 +27,7 @@ WORKDIR /app
# Install production deps only
COPY backend/package*.json ./
RUN npm ci --omit=dev
RUN npm install --omit=dev
# Copy compiled backend
COPY --from=backend-build /app/backend/dist ./dist