From 44873cdfd8438530ac22058e8404a657648352aa Mon Sep 17 00:00:00 2001 From: Manus Deploy Date: Sat, 2 May 2026 19:46:13 +0200 Subject: [PATCH] build: ajout Dockerfile pour rebuild CI/CD --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d1e968c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM node:22-slim + +RUN corepack enable && corepack prepare pnpm@latest --activate + +WORKDIR /app + +# Installer les dépendances +COPY package.json pnpm-lock.yaml ./ +COPY patches/ ./patches/ +RUN pnpm install --frozen-lockfile + +# Copier les sources +COPY . . + +# Compiler le frontend (vite) et le backend (esbuild) +RUN pnpm run build + +# Copier les migrations drizzle +COPY drizzle/ ./drizzle/ +COPY drizzle.config.ts ./ + +ENV NODE_ENV=production +ENV PORT=3000 + +EXPOSE 3000 + +CMD ["node", "dist/index.js"]