dockerfile-templates/javascript.Dockerfile

14 lines
269 B
Docker
Raw Normal View History

2023-09-26 18:24:01 +00:00
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"]