diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..56c5078 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:lts as builder +WORKDIR /build + +COPY . . +RUN yarn install +RUN yarn build + +FROM node:lts + +WORKDIR /app + +COPY --from=builder /build/dist ./dist +COPY --from=builder /build/package.json package.json + +RUN yarn install --prod + +CMD ["yarn", "start:prod"] +