Dockerfile: add production Dockerfile
1 files changed, 15 insertions(+), 0 deletions(-) A Dockerfile
A Dockerfile => Dockerfile +15 -0
@@ 0,0 1,15 @@ FROM node:16 as builder WORKDIR /app COPY package.json yarn.lock ./ RUN yarn COPY . ./ RUN yarn build FROM node:lts-alpine AS runner COPY --from=builder /app/node_modules /app/node_modules COPY --from=builder /app/build /app/build EXPOSE 3001 CMD ["node", "/app/build/index.js"] \ No newline at end of file