From 0e0e6674920f8b4d8fac86715bac0cfcc9f4b9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Tue, 18 Nov 2025 19:40:55 +0100 Subject: [PATCH] Adding docker file --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile 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;"]