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
This commit is contained in:
Rasmus Widing 2025-08-18 12:35:41 +03:00
parent 4004090b45
commit 120eae09b2

View File

@ -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"]
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]