Le depot ne contient plus qu'une seule application : plus de paquets
@cohaise/ui ni @cohaise/server.
- backend/shared/src -> backend/cloud/src/lib (socle serveur inline)
- frontend/shared/src -> frontend/cloud/src/{ui,styles,fonts}
- imports @cohaise/server / @cohaise/ui remplaces par des chemins relatifs
- package.json, tsconfig, Dockerfiles et docker-compose sans workspace partage
- docs (README, architecture, standards, workflow, agents, api, security,
deployment, docker) alignes sur la structure autonome
18 lines
341 B
Docker
18 lines
341 B
Docker
FROM node:22-alpine AS builder
|
|
|
|
WORKDIR /repo
|
|
|
|
ARG APP_DIR
|
|
|
|
COPY package.json package-lock.json tsconfig.json tsconfig.base.json ./
|
|
COPY frontend ./frontend
|
|
|
|
RUN --mount=type=cache,target=/root/.npm npm ci
|
|
RUN npm run build --workspace=${APP_DIR}
|
|
|
|
FROM alpine:3.21 AS export
|
|
|
|
ARG APP_DIR
|
|
|
|
COPY --from=builder /repo/${APP_DIR}/dist /app/dist
|