[GH-ISSUE #475] Error Building from Dockerfile #116

Closed
opened 2026-02-26 18:45:25 +03:00 by kerem · 2 comments
Owner

Originally created by @ddlidded on GitHub (Sep 30, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/475

I get the following error when building using the supplied dockerfile.

#2 [internal] load build definition from Dockerfile
#2 sha256:8aa989c9f9d800d69046211e1b9e0359f320f4004411016a1218a34d4f587ebf
#2 transferring dockerfile: 1.48kB done
#2 DONE 0.0s

#1 [internal] load .dockerignore
#1 sha256:c15bbd4044877320869715dfbe5530176cbff7a0e9417576b2445fb0432fbd5c
#1 transferring context: 429B done
#1 DONE 0.0s

#3 [internal] load metadata for docker.io/library/node:18-alpine
#3 sha256:c7ddcdb449347fb14fd88eab6b6351683fc669399d296a38e5a23e64c4ea7112
#3 DONE 0.3s

#10 [base 1/1] FROM docker.io/library/node:18-alpine@sha256:a315556d82ef54561e54fca7d8ee333382de183d4e56841dcefcd05b55310f46
#10 sha256:c23eb80d711fe7ba78e3bae857b41dbf5262ebe834ebc6071a8b03f2fd60e634
#10 DONE 0.0s

#9 [builder 1/5] WORKDIR /app
#9 sha256:5171cd4f73be92ce08b6742758737fca324372cb4b2589c125ad326d17e9c0a0
#9 CACHED

#8 [runner 2/8] RUN addgroup --system --gid 1001 nodejs
#8 sha256:76519e3f255995c9645aee6beeee2b9bfacf224250dfbe64e285dbe56e420a1f
#8 CACHED

#7 [runner 3/8] RUN adduser --system --uid 1001 nextjs
#7 sha256:25b620fbefd295d27628b4635fa471934cdd3b2340172ac3d3c97cd3766ccb3d
#7 CACHED

#5 [internal] load build context
#5 sha256:da55ce19b084e1347cf9913499ef1c59702b5c66299d89c764e6af6213ad83b3
#5 transferring context: 67.38MB 0.6s done
#5 DONE 0.6s

#6 [builder 2/5] RUN apk add --no-cache libc6-compat
#6 sha256:33da44583ca80b0d179baa995cdf0050cabb6b38c8b15a8e580d1952260682f3
#6 CACHED

#4 [builder 3/5] COPY . .
#4 sha256:fc52060d0d2048b8ad4b99313b93d132bb9f3373c67e1129ac592aaeba0e9ca3
#4 CACHED

#13 [production_deps 4/4] RUN npm ci --production
#13 sha256:051e0521c057955f1b510dbb450a82816cd5e1b0df04e35fb3f23cc6fdb28a37
#13 0.714 npm WARN config production Use --omit=dev instead.
#13 ...

#18 [builder 4/5] RUN npm ci
#18 sha256:257a7bd4c2f27c6193d87b28a8022397b7eaceac088087f6617af77037effa03
#18 ...

#13 [production_deps 4/4] RUN npm ci --production
#13 sha256:051e0521c057955f1b510dbb450a82816cd5e1b0df04e35fb3f23cc6fdb28a37
#13 77.67
#13 77.67 > prepare
#13 77.67 > husky install
#13 77.67
#13 77.71 sh: husky: not found
#13 77.72 npm notice
#13 77.72 npm notice New major version of npm available! 9.8.1 -> 10.1.0
#13 77.72 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.1.0
#13 77.72 npm notice Run npm install -g npm@10.1.0 to update!
#13 77.72 npm notice
#13 77.72 npm ERR! code 127
#13 77.72 npm ERR! path /app
#13 77.73 npm ERR! command failed
#13 77.73 npm ERR! command sh -c husky install
#13 77.73
#13 77.73 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-09-30T03_47_23_798Z-debug-0.log
#13 ERROR: process "/bin/sh -c npm ci --production" did not complete successfully: exit code: 127

#18 [builder 4/5] RUN npm ci
#18 sha256:257a7bd4c2f27c6193d87b28a8022397b7eaceac088087f6617af77037effa03
#18 CANCELED

[production_deps 4/4] RUN npm ci --production:

process "/bin/sh -c npm ci --production" did not complete successfully: exit code: 127
Deployment failed
Exit with error code: 1

Originally created by @ddlidded on GitHub (Sep 30, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/475 I get the following error when building using the supplied dockerfile. #2 [internal] load build definition from Dockerfile #2 sha256:8aa989c9f9d800d69046211e1b9e0359f320f4004411016a1218a34d4f587ebf #2 transferring dockerfile: 1.48kB done #2 DONE 0.0s #1 [internal] load .dockerignore #1 sha256:c15bbd4044877320869715dfbe5530176cbff7a0e9417576b2445fb0432fbd5c #1 transferring context: 429B done #1 DONE 0.0s #3 [internal] load metadata for docker.io/library/node:18-alpine #3 sha256:c7ddcdb449347fb14fd88eab6b6351683fc669399d296a38e5a23e64c4ea7112 #3 DONE 0.3s #10 [base 1/1] FROM docker.io/library/node:18-alpine@sha256:a315556d82ef54561e54fca7d8ee333382de183d4e56841dcefcd05b55310f46 #10 sha256:c23eb80d711fe7ba78e3bae857b41dbf5262ebe834ebc6071a8b03f2fd60e634 #10 DONE 0.0s #9 [builder 1/5] WORKDIR /app #9 sha256:5171cd4f73be92ce08b6742758737fca324372cb4b2589c125ad326d17e9c0a0 #9 CACHED #8 [runner 2/8] RUN addgroup --system --gid 1001 nodejs #8 sha256:76519e3f255995c9645aee6beeee2b9bfacf224250dfbe64e285dbe56e420a1f #8 CACHED #7 [runner 3/8] RUN adduser --system --uid 1001 nextjs #7 sha256:25b620fbefd295d27628b4635fa471934cdd3b2340172ac3d3c97cd3766ccb3d #7 CACHED #5 [internal] load build context #5 sha256:da55ce19b084e1347cf9913499ef1c59702b5c66299d89c764e6af6213ad83b3 #5 transferring context: 67.38MB 0.6s done #5 DONE 0.6s #6 [builder 2/5] RUN apk add --no-cache libc6-compat #6 sha256:33da44583ca80b0d179baa995cdf0050cabb6b38c8b15a8e580d1952260682f3 #6 CACHED #4 [builder 3/5] COPY . . #4 sha256:fc52060d0d2048b8ad4b99313b93d132bb9f3373c67e1129ac592aaeba0e9ca3 #4 CACHED #13 [production_deps 4/4] RUN npm ci --production #13 sha256:051e0521c057955f1b510dbb450a82816cd5e1b0df04e35fb3f23cc6fdb28a37 #13 0.714 npm WARN config production Use `--omit=dev` instead. #13 ... #18 [builder 4/5] RUN npm ci #18 sha256:257a7bd4c2f27c6193d87b28a8022397b7eaceac088087f6617af77037effa03 #18 ... #13 [production_deps 4/4] RUN npm ci --production #13 sha256:051e0521c057955f1b510dbb450a82816cd5e1b0df04e35fb3f23cc6fdb28a37 #13 77.67 #13 77.67 > prepare #13 77.67 > husky install #13 77.67 #13 77.71 sh: husky: not found #13 77.72 npm notice #13 77.72 npm notice New major version of npm available! 9.8.1 -> 10.1.0 #13 77.72 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.1.0> #13 77.72 npm notice Run `npm install -g npm@10.1.0` to update! #13 77.72 npm notice #13 77.72 npm ERR! code 127 #13 77.72 npm ERR! path /app #13 77.73 npm ERR! command failed #13 77.73 npm ERR! command sh -c husky install #13 77.73 #13 77.73 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-09-30T03_47_23_798Z-debug-0.log #13 ERROR: process "/bin/sh -c npm ci --production" did not complete successfully: exit code: 127 #18 [builder 4/5] RUN npm ci #18 sha256:257a7bd4c2f27c6193d87b28a8022397b7eaceac088087f6617af77037effa03 #18 CANCELED [production_deps 4/4] RUN npm ci --production: process "/bin/sh -c npm ci --production" did not complete successfully: exit code: 127 Deployment failed Exit with error code: 1
kerem 2026-02-26 18:45:25 +03:00
Author
Owner

@G3root commented on GitHub (Oct 2, 2023):

I have an open PR for the docker file which builds the docker image. I'd appreciate a review at https://github.com/documenso/documenso/pull/338.

<!-- gh-comment-id:1743047869 --> @G3root commented on GitHub (Oct 2, 2023): I have an open PR for the docker file which builds the docker image. I'd appreciate a review at https://github.com/documenso/documenso/pull/338.
Author
Owner

@Mythie commented on GitHub (Dec 2, 2023):

This should be all sorted now, we also have a GitHub Action that builds the docker container with each push 😄

<!-- gh-comment-id:1837126405 --> @Mythie commented on GitHub (Dec 2, 2023): This should be all sorted now, we also have a GitHub Action that builds the docker container with each push 😄
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#116
No description provided.