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