first commit

This commit is contained in:
valere
2025-09-11 17:37:03 +02:00
commit 8213752385
53 changed files with 11946 additions and 0 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
# Stage de build
FROM node:20-alpine AS build
WORKDIR /app
# Installer pnpm
RUN npm install -g pnpm
# Copier package.json et lockfile pour cache pnpm
COPY package.json pnpm-lock.yaml* ./
RUN pnpm install --frozen-lockfile
# Copier tout le projet
COPY . .
# Build Nuxt
RUN pnpm build
# Stage production
FROM node:20-alpine
WORKDIR /app
COPY --from=build /app/.output .output
COPY --from=build /app/package.json ./
COPY --from=build /app/node_modules ./node_modules
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]