Adding docker file

This commit is contained in:
2025-11-18 19:40:55 +01:00
parent 22e9457779
commit 0e0e667492

21
Dockerfile Normal file
View File

@ -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;"]