dockerfile-templates/javascript.Dockerfile
2023-09-26 20:48:15 +02:00

14 lines
266 B
Docker

FROM node:19 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:19 as run
WORKDIR /app
COPY --from=build /build/app/ /app/
CMD ["node", "."]