2023-09-26 18:48:15 +00:00
|
|
|
FROM node:19 as build
|
2023-09-26 18:24:01 +00:00
|
|
|
|
|
|
|
WORKDIR /build/app
|
|
|
|
COPY package.json tsconfig.json /build/app/
|
|
|
|
COPY src /build/app/src/
|
|
|
|
RUN corepack enable
|
|
|
|
RUN corepack prepare pnpm@latest --activate
|
|
|
|
RUN pnpm install
|
|
|
|
RUN pnpm run build
|
|
|
|
|
2023-09-26 18:48:15 +00:00
|
|
|
FROM node:19 as run
|
2023-09-26 18:24:01 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /build/app/ /app/
|
|
|
|
CMD ["node", "dist"]
|