From 9fc4691c74cf3b75dad89746cb18f3e82ce522f5 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Mon, 25 May 2026 18:55:56 +0000 Subject: [PATCH] Restore node:22-alpine frontend with vite preview (successful config) --- docker-compose.simple.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docker-compose.simple.yml b/docker-compose.simple.yml index 4440bcc..8e3fa9c 100644 --- a/docker-compose.simple.yml +++ b/docker-compose.simple.yml @@ -51,7 +51,7 @@ services: restart: unless-stopped frontend: - image: nginx:alpine + image: node:22-alpine working_dir: /app expose: - "80" @@ -59,14 +59,13 @@ services: - sh - '-c' - | - apk add --no-cache git nodejs npm curl + apk add --no-cache git curl git clone --depth 1 https://forgejo.media-on.de/Leopoldadmin/web-cad.git /tmp/repo - cd /tmp/repo/frontend + cp -r /tmp/repo/frontend/* /app/ + rm -rf /tmp/repo npm ci npx vite build --mode production - cp -r dist/* /usr/share/nginx/html/ - cp nginx.conf /etc/nginx/conf.d/default.conf - nginx -g 'daemon off;' + npx vite preview --host 0.0.0.0 --port 80 depends_on: - backend healthcheck: