diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e9e7804 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:lts-alpine as build-stage +WORKDIR /app +COPY package*.json ./ +RUN yarn install +COPY . . +RUN yarn run build + + +FROM node:lts-alpine as production-stage +COPY . . +COPY --from=build-stage /app/dist ./dist +CMD ["yarn", "dev"]