15 lines
302 B
Docker
15 lines
302 B
Docker
FROM node:19 as build
|
|
|
|
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
|
|
|
|
FROM node:19 as run
|
|
WORKDIR /app
|
|
COPY --from=build /build/app/ /app/
|
|
CMD ["node", "dist"]
|