Backend Go 1.23+ : - API REST + WebSocket (chi, gorilla/websocket) - Authentification PAM via SSH + JWT RS256 - Chiffrement AES-256-GCM pour secrets SQLite - Pool SSH, client Proxmox REST, hub WebSocket pub/sub - Système de modules compilés à initialisation conditionnelle - Audit log, migrations SQLite versionnées Frontend Vue 3 + Vite + TypeScript : - Thème Neumorphism sombre/clair (CSS custom properties) - Wizard d'installation, Dashboard drag-drop, Terminal xterm.js - Toutes les vues CORE + stubs modules optionnels - i18n EN/FR (vue-i18n v11) Infrastructure : - Docker multi-stage (Go → alpine, Node → nginx) - docker-compose.yml, .gitattributes, LICENSE MIT, README Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
894 B
Docker
31 lines
894 B
Docker
# ── Étape 1 : Build du frontend Vue 3 + Vite ───────────────────────────────
|
|
FROM node:22-alpine AS builder
|
|
|
|
WORKDIR /build
|
|
|
|
# Copier les fichiers de dépendances en premier
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm install --frozen-lockfile
|
|
|
|
# Copier le code source et compiler
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# ── Étape 2 : Image Nginx pour servir le frontend ──────────────────────────
|
|
FROM nginx:1.27-alpine
|
|
|
|
# Supprimer la config Nginx par défaut
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
|
|
# Copier notre config Nginx personnalisée
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# Copier les fichiers compilés par Vite
|
|
COPY --from=builder /build/dist /usr/share/nginx/html
|
|
|
|
# Vérifier la config Nginx au build
|
|
RUN nginx -t
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|