14 lines
269 B
Docker
14 lines
269 B
Docker
|
FROM node:18 as build
|
||
|
|
||
|
WORKDIR /build/app
|
||
|
COPY package.json /build/app/
|
||
|
COPY src /build/app/src/
|
||
|
RUN corepack enable
|
||
|
RUN corepack prepare pnpm@latest --activate
|
||
|
RUN pnpm install
|
||
|
|
||
|
FROM node:18 as run
|
||
|
WORKDIR /app
|
||
|
COPY --from=build /build/app/ /app/
|
||
|
CMD ["node", "dist"]
|