File size: 434 Bytes
74bfb65
4b35022
 
 
74bfb65
 
 
4b35022
74bfb65
 
 
4b35022
74bfb65
 
4b35022
 
74bfb65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM node:24-slim

WORKDIR /app

COPY package.json pnpm-workspace.yaml tsconfig.base.json tsconfig.json .npmrc ./
COPY lib ./lib
COPY artifacts/api-server ./artifacts/api-server

RUN corepack enable \
  && pnpm install --filter @workspace/api-server... \
  && pnpm --filter @workspace/api-server run build

ENV NODE_ENV=production
ENV PORT=7860
EXPOSE 7860

CMD ["node", "--enable-source-maps", "artifacts/api-server/dist/index.mjs"]