File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1- FROM node:22-slim AS build
1+ FROM node:22-slim AS base
22ENV PNPM_HOME ="/pnpm"
33ENV PATH ="$PNPM_HOME:$PATH"
4- RUN corepack enable
5- RUN corepack use pnpm
6- ARG ServiceName
7-
4+ RUN npm i -g pnpm@latest
85WORKDIR /app
9- COPY pnpm-*.yaml ./
10- COPY tsconfig.*.json ./
116
12- COPY libs/hmi-helper ./libs/hmi-helper
13- COPY /packages/$ServiceName ./packages/$ServiceName
7+ FROM base AS build
8+ ARG ServiceName
9+ COPY . .
1410RUN pnpm install
11+ RUN pnpm --filter ${ServiceName} build
12+ RUN pnpm deploy --filter ${ServiceName} /build
13+
14+ FROM base AS prod
15+ WORKDIR /app
16+ COPY --from =build /build /app/
1517
16- WORKDIR /app/packages/$ServiceName
17- RUN pnpm build
1818CMD [ "pnpm" , "start" ]
Original file line number Diff line number Diff line change 1- shamefully-hoist = true
1+ shamefully-hoist = true
2+ inject-workspace-packages = true
You can’t perform that action at this time.
0 commit comments