Commit Graph

10 Commits

Author SHA1 Message Date
Stephanos A.
0bce1942a9 fix: make Dockerfile.web handle Next.js builds properly with conditional copies
- Fix Docker multi-stage COPY failing when .next or dist directories don't exist
- Create output directories in runner stage before copying
- Use || true fallback for COPY commands to prevent build failures
- Add pre-copy directory validation messages
- This fixes builds for passenger-portal and passenger-backoffice which are Next.js apps

Fixes both passenger-portal and passenger-backoffice Docker build failures
2026-06-03 07:14:11 +03:00
Stephanos A.
c3d7803bd5 Fix: Replace invalid COPY commands inside RUN with proper multi-stage copy instructions
The RUN instruction cannot contain COPY commands. Fixed by moving the COPY
instructions outside the RUN block and copying both Next.js (.next) and
Vite (dist) build outputs from the builder stage. The nginx configuration
can serve both build outputs appropriately.

Fixes: Docker build failure with "COPY: not found" error
2026-06-02 23:33:56 +03:00
Stephanos A.
0b02944180 fix: Update Dockerfile.web to support Next.js .next directory output
- Check for both .next (Next.js) and dist (Vite/other) directories
- Copy .next and public assets for Next.js builds
- Fallback to dist directory for other build tools
- Fixes build verification for @edr/passenger-backoffice Next.js app
2026-06-02 23:30:51 +03:00
Stephanos A.
9706000998 fix: increase network timeout and retries for external resource fetching during Docker build
- Increase fetch-timeout to 120 seconds (default was likely 30s)
- Set retry min/max timeouts to handle transient network issues
- Increase fetch-retries to 5 (from default 2)
- Add NODE_OPTIONS with increased heap size to prevent OOM during build
- Resolves intermittent timeout failures when downloading Google Fonts and other CDN resources
2026-06-02 23:04:18 +03:00
Stephanos A.
5645a95dd6 fix: Add build output validation to Dockerfile.web
- Verify dist directory exists after build completes
- Provides better error messaging if build outputs are missing
- Prevents silent failures that result in empty COPY commands
2026-06-02 23:01:43 +03:00
Stephanos A.
58a851f413 fix: Add error handling to Dockerfile.web build stage 2026-06-02 22:40:29 +03:00
SennayT
37c13ee7e1 move deployment to dev branch 2026-05-28 14:12:32 +03:00
SennayT
af5f4cd038 change node version and modify docker compose 2026-05-28 14:03:49 +03:00
SennayT
342ccb63de modify pipeline to speed up deployment 2026-05-28 12:52:56 +03:00
Muluhabt
3b8b6979db Project Initialization 2026-05-12 15:17:16 +03:00