Dokploy / dokploy

Open Source Alternative to Vercel, Netlify and Heroku.
https://dokploy.com/
Other
9.32k stars 459 forks source link

Nixpack: Endless Loop with Node.js When Overriding Install Command #661

Closed freddymu closed 2 weeks ago

freddymu commented 2 weeks ago

To Reproduce

  1. Add environment variables NIXPACKS_INSTALL_CMD=npm install --omit=dev --legacy-peer-deps
  2. Deploy NextJS 15 Website

Current vs. Expected behavior

Current Behavior :

Expected Behavior :

Provide environment information

Operating system
    OS: Ubuntu 22.04
    Arch: x86_64
Dokploy version: 0.10.10
VPS Provider: Azure Virtual Machine, 2 vCPU, 8GB RAM
Application: Website using Nextjs 15

Which area(s) are affected? (Select all that apply)

Application

Additional context

Deployment logs

Build nixpacks: ✅
Source Type: github: ✅

╔═══════════════════ Nixpacks v1.29.0 ═══════════════════╗
║ setup      │ nodejs_20, npm-9_x                        ║
║────────────────────────────────────────────────────────║
║ install    │ npm install --omit=dev --legacy-peer-deps ║
║────────────────────────────────────────────────────────║
║ build      │ npm run build                             ║
║────────────────────────────────────────────────────────║
║ start      │ npm run start                             ║
╚════════════════════════════════════════════════════════╝

#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 3.07kB done
#1 DONE 0.1s

#2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1727136237
#2 DONE 0.6s

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.1s

#4 [stage-0  1/10] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1727136237@sha256:72cd12021740b1c4100a5c53c3b22974dacb86e4b0a35fcdd12605339de25b86
#4 DONE 0.0s

#5 [internal] load build context
#5 transferring context: 5.52MB 0.1s done
#5 DONE 0.2s

#6 [stage-0  2/10] WORKDIR /app/
#6 CACHED

#7 [stage-0  3/10] COPY .nixpacks/nixpkgs-e05605ec414618eab4a7a6aea8b38f6fbbcc8f08.nix .nixpacks/nixpkgs-e05605ec414618eab4a7a6aea8b38f6fbbcc8f08.nix
#7 CACHED

#8 [stage-0  4/10] RUN nix-env -if .nixpacks/nixpkgs-e05605ec414618eab4a7a6aea8b38f6fbbcc8f08.nix && nix-collect-garbage -d
#8 CACHED

#9 [stage-0  5/10] COPY . /app/.
#9 DONE 0.4s

#10 [stage-0  6/10] RUN --mount=type=cache,id=J6YS3bB11w-/root/npm,target=/root/.npm npm install --omit=dev --legacy-peer-deps
#10 0.363 npm warn config production Use `--omit=dev` instead.
#10 8.801 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#10 9.008 npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
#10 9.028 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#10 9.178 npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
#10 9.183 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 9.184 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 9.186 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 9.186 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 9.190 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 11.95 npm warn deprecated eslint@8.45.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
#10 18.59 
#10 18.59 > wricop@0.1.0 install
#10 18.59 > npm ci --omit=dev --legacy-peer-deps
#10 18.59 
#10 18.74 npm warn config production Use `--omit=dev` instead.
#10 29.69 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#10 29.93 npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
#10 29.94 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#10 30.08 npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
#10 30.08 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 30.08 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 30.08 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 30.09 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 30.09 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 32.89 npm warn deprecated eslint@8.45.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
#10 38.45 
#10 38.45 > wricop@0.1.0 install
#10 38.45 > npm ci --omit=dev --legacy-peer-deps
#10 38.45 
#10 38.59 npm warn config production Use `--omit=dev` instead.
#10 49.39 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#10 49.72 npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
#10 49.74 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#10 49.86 npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
#10 49.87 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 49.87 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 49.87 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 49.87 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 49.87 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 53.31 npm warn deprecated eslint@8.45.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
#10 60.80 
#10 60.80 > wricop@0.1.0 install
#10 60.80 > npm ci --omit=dev --legacy-peer-deps
#10 60.80 
#10 60.96 npm warn config production Use `--omit=dev` instead.
#10 72.85 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#10 73.05 npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
#10 73.07 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#10 73.21 npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
#10 73.22 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 73.22 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 73.22 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 73.22 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 73.22 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 76.96 npm warn deprecated eslint@8.45.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
#10 82.74 
#10 82.74 > wricop@0.1.0 install
#10 82.74 > npm ci --omit=dev --legacy-peer-deps
#10 82.74 
#10 82.90 npm warn config production Use `--omit=dev` instead.
#10 94.97 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#10 95.19 npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
#10 95.22 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#10 95.58 npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
#10 95.59 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 95.59 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 95.59 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 95.59 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 95.60 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 100.2 npm warn deprecated eslint@8.45.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
#10 108.1 
#10 108.1 > wricop@0.1.0 install
#10 108.1 > npm ci --omit=dev --legacy-peer-deps
#10 108.1 
#10 109.0 npm warn config production Use `--omit=dev` instead.
#10 120.2 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#10 120.5 npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
#10 120.5 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#10 120.7 npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
#10 120.7 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 120.7 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 120.7 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 120.7 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 120.7 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#10 124.6 npm warn deprecated eslint@8.45.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.
Siumauricio commented 2 weeks ago

Duplicate https://github.com/Dokploy/dokploy/issues/508#issuecomment-2383740611