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