Gaden
Explore posts from serversMonorepo sub directory deployment failing
Hello.
I wish to deploy a sub directory of my mono repo.
The sub dir that i wish to deploy is
This is the package.json of the sub dir
/apps/points-server
This is how my variables are set
Root Directory
/apps/points-server
Build Command
Build Command
Watch Paths
/apps/points-server
Start command
pnpm run start
This is the logs i get after trying to deploy:
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.19kB done
#1 DONE 0.3s
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.4s
#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1678752204
#3 DONE 0.1s
#4 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1678752204@sha256:fba77818e57bebd4e7a02f60d45554354d6ec5a3f7d98b4ee4f6b2a6e720191e
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 18.64kB done
#5 DONE 0.3s
#6 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix && nix-collect-garbage -d
#6 CACHED
#7 [stage-0 2/8] WORKDIR /app/
#7 CACHED
#8 [stage-0 3/10] COPY .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix
#8 CACHED
#9 [stage-0 5/10] RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
#9 DONE 0.8s
#10 [stage-0 6/10] COPY . /app/.
#10 DONE 0.3s
#11 [stage-0 7/10] RUN --mount=type=cache,id=s/dda6e822-b6a7-446d-9689-244823126a93-/root/npm,target=/root/.npm npm i
#11 0.973 npm
WARN config production Use `--omit=dev` instead.
#11 1.631 npm ERR! code EUNSUPPORTEDPROTOCOL
#11 1.633 npm ERR! Unsupported URL Type "workspace:": workspace:0.0.0
#11 1.635
#11 1.635 npm ERR! A complete log of this run can be found in:
#11 1.635 npm ERR! /root/.npm/_logs/2023-05-10T19_26_02_588Z-debug-0.log
#11 ERROR: process "/bin/bash -ol pipefail -c npm i" did not complete successfully: exit code: 1
-----
> [stage-0 7/10] RUN --mount=type=cache,id=s/dda6e822-b6a7-446d-9689-244823126a93-/root/npm,target=/root/.npm npm i:
WARN config production Use `--omit=dev` instead.
#11 1.631 npm ERR! code EUNSUPPORTEDPROTOCOL
#11 1.633 npm ERR! Unsupported URL Type "workspace:": workspace:0.0.0
#11 1.635
#11 1.635 npm ERR! A complete log of this run can be found in:
#11 1.635 npm ERR! /root/.npm/_logs/2023-05-10T19_26_02_588Z-debug-0.log
-----
Dockerfile:21
-------------------
19 | RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
20 | COPY . /app/.
21 | >>> RUN --mount=type=cache,id=s/dda6e822-b6a7-446d-9689-244823126a93-/root/npm,target=/root/.npm npm i
22 |
23 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm i" did not complete successfully: exit code: 1
Error: Docker build failed
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.19kB done
#1 DONE 0.3s
#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.4s
#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1678752204
#3 DONE 0.1s
#4 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1678752204@sha256:fba77818e57bebd4e7a02f60d45554354d6ec5a3f7d98b4ee4f6b2a6e720191e
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 18.64kB done
#5 DONE 0.3s
#6 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix && nix-collect-garbage -d
#6 CACHED
#7 [stage-0 2/8] WORKDIR /app/
#7 CACHED
#8 [stage-0 3/10] COPY .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix .nixpacks/nixpkgs-293a28df6d7ff3dec1e61e37cc4ee6e6c0fb0847.nix
#8 CACHED
#9 [stage-0 5/10] RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
#9 DONE 0.8s
#10 [stage-0 6/10] COPY . /app/.
#10 DONE 0.3s
#11 [stage-0 7/10] RUN --mount=type=cache,id=s/dda6e822-b6a7-446d-9689-244823126a93-/root/npm,target=/root/.npm npm i
#11 0.973 npm
WARN config production Use `--omit=dev` instead.
#11 1.631 npm ERR! code EUNSUPPORTEDPROTOCOL
#11 1.633 npm ERR! Unsupported URL Type "workspace:": workspace:0.0.0
#11 1.635
#11 1.635 npm ERR! A complete log of this run can be found in:
#11 1.635 npm ERR! /root/.npm/_logs/2023-05-10T19_26_02_588Z-debug-0.log
#11 ERROR: process "/bin/bash -ol pipefail -c npm i" did not complete successfully: exit code: 1
-----
> [stage-0 7/10] RUN --mount=type=cache,id=s/dda6e822-b6a7-446d-9689-244823126a93-/root/npm,target=/root/.npm npm i:
WARN config production Use `--omit=dev` instead.
#11 1.631 npm ERR! code EUNSUPPORTEDPROTOCOL
#11 1.633 npm ERR! Unsupported URL Type "workspace:": workspace:0.0.0
#11 1.635
#11 1.635 npm ERR! A complete log of this run can be found in:
#11 1.635 npm ERR! /root/.npm/_logs/2023-05-10T19_26_02_588Z-debug-0.log
-----
Dockerfile:21
-------------------
19 | RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
20 | COPY . /app/.
21 | >>> RUN --mount=type=cache,id=s/dda6e822-b6a7-446d-9689-244823126a93-/root/npm,target=/root/.npm npm i
22 |
23 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm i" did not complete successfully: exit code: 1
Error: Docker build failed
{
"name": "points-server",
"displayName": "Points Server",
"version": "0.0.7",
"author": "Sidekick Wallet, Inc",
"scripts": {
"start": "ts-node index.ts"
},
"dependencies": {
"@acme/db": "*",
"discord.js": "^14.10.2",
"dotenv": "^16.0.3",
"eslint": "^8.34.0",
"eslint-config-acme": "workspace:0.0.0",
"ethers": "^5.7.2",
"fastify": "^4.17.0",
"zod": "^3.21.4"
},
"devDependencies": {
"prettier": "2.8.4",
"ts-node": "^10.9.1",
"typescript": "4.9.5"
}
}
{
"name": "points-server",
"displayName": "Points Server",
"version": "0.0.7",
"author": "Sidekick Wallet, Inc",
"scripts": {
"start": "ts-node index.ts"
},
"dependencies": {
"@acme/db": "*",
"discord.js": "^14.10.2",
"dotenv": "^16.0.3",
"eslint": "^8.34.0",
"eslint-config-acme": "workspace:0.0.0",
"ethers": "^5.7.2",
"fastify": "^4.17.0",
"zod": "^3.21.4"
},
"devDependencies": {
"prettier": "2.8.4",
"ts-node": "^10.9.1",
"typescript": "4.9.5"
}
}
30 replies