From 120eae09b2f27aee663ab98cd227b2f056b92e00 Mon Sep 17 00:00:00 2001 From: Rasmus Widing Date: Mon, 18 Aug 2025 12:35:41 +0300 Subject: [PATCH] Remove unnecessary startup delay script from frontend Dockerfile - Rolled back to match main branch Dockerfile - Removed 3-second sleep script that was added for backend readiness - Container now runs npm directly without intermediate script - Tested and verified all services start correctly without the delay --- archon-ui-main/Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/archon-ui-main/Dockerfile b/archon-ui-main/Dockerfile index f36ed4c1..2ad5d5ff 100644 --- a/archon-ui-main/Dockerfile +++ b/archon-ui-main/Dockerfile @@ -21,9 +21,5 @@ COPY . . # Expose Vite's default port EXPOSE 5173 -# Add a small startup script to wait a moment before starting Vite -# This helps ensure the backend is fully ready even after healthcheck passes -RUN echo '#!/bin/sh\nsleep 3\nexec npm run dev -- --host 0.0.0.0' > /app/start.sh && chmod +x /app/start.sh - # Start Vite dev server with host binding for Docker -CMD ["/app/start.sh"] \ No newline at end of file +CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]