build 2
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user