App hosting deploy using coolify or dokploy

App hosting deploy using coolify or dokploy

Ionuts1
Shopify Partner
24 1 3

Hi guys, i'm trying to avoid a huge cost for hosting/deploying apps made with remix.js on render.com or other similar hosting services. I found coolify or dokploy, i've installed them on my vps and works fine with any other projects i've deployed like Next.js, Astro.js,Laravel, now i want to deploy an shopify app which is throwing some errors while building. The question is what do you guys using to deploy the apps, any recommendations?
Now for who have apps hosted with Coolify or dokploy, any tips?

Logs:

[2024-Jun-27 19:55:55.782698]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 511B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/node:18-alpine

[2024-Jun-27 19:55:56.735378]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#2 DONE 1.1s

[2024-Jun-27 19:55:56.936553]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#3 [internal] load .dockerignore
#3 transferring context: 66B done
#3 DONE 0.0s

#4 [1/7] FROM docker.io/library/node:18-alpine@sha256:e37da457874383fa9217067867ec85fe8fe59f0bfa351ec9752a95438680056e
#4 DONE 0.0s

#5 [internal] load build context

[2024-Jun-27 19:55:56.938100]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#5 transferring context: 629.40kB 0.0s done
#5 DONE 0.0s

#6 [2/7] WORKDIR /app
#6 CACHED

#7 [3/7] COPY . .
#7 DONE 0.0s

#8 [4/7] RUN npm install --omit=dev

[2024-Jun-27 19:56:11.209238]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#8 14.42
#8 14.42 added 615 packages, and audited 616 packages in 14s

[2024-Jun-27 19:56:11.366114]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#8 14.43
#8 14.43 163 packages are looking for funding
#8 14.43 run `npm fund` for details
#8 14.43
#8 14.43 found 0 vulnerabilities
#8 14.43 npm notice
#8 14.43 npm notice New minor version of npm available! 10.7.0 -> 10.8.1
#8 14.43 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
#8 14.43 npm notice To update run: npm install -g npm@10.8.1
#8 14.43 npm notice
[2024-Jun-27 19:56:11.407107]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#8 DONE 14.6s

[2024-Jun-27 19:56:11.559870]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#9 [5/7] RUN npm remove @shopify/app @shopify/cli

[2024-Jun-27 19:56:14.296921]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#9 2.888
#9 2.888 up to date, audited 616 packages in 3s

[2024-Jun-27 19:56:14.472715]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#9 2.888
#9 2.888 163 packages are looking for funding
#9 2.888 run `npm fund` for details
#9 2.891
#9 2.891 found 0 vulnerabilities
#9 DONE 2.9s

#10 [6/7] RUN npm run build

[2024-Jun-27 19:56:14.524689]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#10 0.202
#10 0.202 > build
#10 0.202 > remix vite:build
#10 0.202

[2024-Jun-27 19:56:15.596768]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#10 1.274 failed to load config from /app/vite.config.js

[2024-Jun-27 19:56:15.646467]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
#10 1.280 TypeError [ERR_INVALID_URL]: Invalid URL
#10 1.280 at new NodeError (node:internal/errors:405:5)
#10 1.280 at new URL (node:internal/url:676:13)
#10 1.280 at file:///app/vite.config.js.timestamp-1719518175590-b6608c5b92d32.mjs:9:12
#10 1.280 at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
#10 1.280 at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
#10 1.280 at async loadConfigFromBundledFile (file:///app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:66979:15)
#10 1.280 at async Module.loadConfigFromFile (file:///app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:66820:24)
#10 1.280 at async configResolved (/app/node_modules/@remix-run/dev/dist/vite/plugin.js:729:37)
#10 1.280 at async Promise.all (index 1)
#10 1.280 at async Module.resolveConfig (file:///app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:66692:3) {
#10 1.280 input: '0.0.0.0',
#10 1.280 code: 'ERR_INVALID_URL'
#10 1.280 }
#10 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
------
> [6/7] RUN npm run build:
1.280 at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
1.280 at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
1.280 at async loadConfigFromBundledFile (file:///app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:66979:15)
1.280 at async Module.loadConfigFromFile (file:///app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:66820:24)
1.280 at async configResolved (/app/node_modules/@remix-run/dev/dist/vite/plugin.js:729:37)
1.280 at async Promise.all (index 1)
1.280 at async Module.resolveConfig (file:///app/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:66692:3) {
1.280 input: '0.0.0.0',
1.280 code: 'ERR_INVALID_URL'
1.280 }
------

[2024-Jun-27 19:56:15.648856]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
Dockerfile:14
--------------------
12 | # Remove this line if you want to run CLI commands in your container.
13 | RUN npm remove @shopify/app @shopify/cli
14 | >>> RUN npm run build
15 |
16 | # You'll probably want to remove this in production, it's here to make it easier to test things!
--------------------

[2024-Jun-27 19:56:15.651714]

[COMMAND] docker exec i8kgkww bash -c 'bash /artifacts/build.sh'
[OUTPUT]
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
Replies 0 (0)