diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..11eace9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM node:20-alpine AS builder + +RUN corepack enable && corepack prepare pnpm@latest --activate + +WORKDIR /app + +RUN apk add --no-cache git + +RUN git clone https://git.raphaelforment.fr/BuboBubo/oldboy . + +RUN pnpm install --frozen-lockfile + +RUN pnpm build + +FROM nginx:alpine + +COPY --from=builder /app/dist /usr/share/nginx/html + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"]