build 4
This commit is contained in:
@@ -3,7 +3,7 @@ FROM node:20-slim AS frontend-builder
|
||||
|
||||
WORKDIR /build/frontend
|
||||
COPY frontend/package*.json ./
|
||||
RUN npm ci
|
||||
RUN npm install
|
||||
COPY frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
WORKDIR /build/backend
|
||||
COPY backend/package*.json backend/tsconfig.json ./
|
||||
RUN npm ci
|
||||
RUN npm install
|
||||
COPY backend/src ./src
|
||||
RUN npm run build && npm prune --production
|
||||
|
||||
|
||||
Reference in New Issue
Block a user