diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ef0d44e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:20 AS builder + +WORKDIR /app +COPY ./package.json ./package-lock.json ./ +RUN npm ci --only=prod +COPY . . + +RUN npm run build + +FROM nginx:alpine +COPY --from=builder /app/dist /usr/share/nginx/html + +EXPOSE 80 +CMD [ "nginx", "-g", "daemon off;" ]