FROM node:22-alpine AS build WORKDIR /app RUN corepack enable COPY package.json pnpm-lock.yaml pnpm-workspace.yaml tsconfig.base.json ./ COPY packages ./packages COPY apps ./apps COPY templates ./templates RUN pnpm install --frozen-lockfile ARG APP_FILTER=@dev-screen-starter/demo-screen RUN pnpm --filter ${APP_FILTER:-@dev-screen-starter/demo-screen} build FROM nginx:1.27-alpine ARG APP_PATH=apps/demo-screen COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf COPY --from=build /app/${APP_PATH}/dist /usr/share/nginx/html EXPOSE 80