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