chore: initial import of CoHaiSe Cloud
PR — Ouverture automatique / create-pr (push) Failing after 1s

Standalone files & media application: React/Vite frontend with the @cohaise/ui design system, Hono + MariaDB backend, nginx reverse proxy, Docker Compose stack, migrations 000-006, and project docs.

Adds Gitea Actions workflows for deployment, automatic pull requests, and Renovate dependency updates.
This commit is contained in:
2026-10-14 15:24:06 +02:00
commit cc397e96d8
113 changed files with 12678 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
# Image des services API Node du Cloud. APP_DIR choisit le paquet a construire
# (API ou CLI de migration) ; les deux partagent la meme methode de build.
FROM node:22-alpine AS builder
ARG APP_DIR
WORKDIR /repo
COPY package.json package-lock.json tsconfig.json tsconfig.base.json ./
COPY backend ./backend
RUN --mount=type=cache,target=/root/.npm npm ci
RUN npm run build --workspace=backend/shared
RUN npm run build --workspace=${APP_DIR}
# On ne embarque pas les devDependencies dans l'image de production.
RUN npm prune --omit=dev && npm cache clean --force
FROM node:22-alpine AS export
ARG APP_DIR
ENV NODE_ENV=production
WORKDIR /repo
COPY --from=builder /repo/package.json ./package.json
COPY --from=builder /repo/package-lock.json ./package-lock.json
COPY --from=builder /repo/node_modules ./node_modules
# backend/shared est le paquet @cohaise/server : les liens de workspace
# de node_modules pointent dessus, il doit donc voyager avec l'application.
COPY --from=builder /repo/backend/shared ./backend/shared
COPY --from=builder /repo/${APP_DIR} ./${APP_DIR}
WORKDIR /repo/${APP_DIR}
EXPOSE 8080
CMD ["node", "dist/index.js"]