-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of Bun is running?
1.2.3 (8c4d3ff)
What platform is your computer?
CentOS 7 Linux 3.10.0-862.3.2.el7.x86_64 x86_64 x86_64
What steps can reproduce the bug?
Create Dockerfile:
FROM oven/bun:1.2.3
RUN bun add prisma
Run docker build:
docker build .What is the expected behavior?
Bun install/add command should be executed successfully without error
What do you see instead?
error: postinstall script from "esbuild" exited with 1
Output
[+] Building 17.6s (5/5) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 139B 0.0s
=> [internal] load metadata for docker.io/oven/bun:1.2.3 2.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/2] FROM docker.io/oven/bun:1.2.3@sha256:1ab5cdebde9995e8221290c13c89a473 8.5s
=> => resolve docker.io/oven/bun:1.2.3@sha256:1ab5cdebde9995e8221290c13c89a473 0.0s
=> => sha256:478cb73646107d7b3f891aa53abaed926667463844c07b1 53.74MB / 53.74MB 0.7s
=> => sha256:50692d9e73bcef78654de04190467af80a460ad0d05e278 38.73MB / 38.73MB 3.6s
=> => sha256:1ab5cdebde9995e8221290c13c89a473840b53131170951c6 1.61kB / 1.61kB 0.0s
=> => sha256:3718ce737077926396fe0118234cf573b31ce81062236b834 1.43kB / 1.43kB 0.0s
=> => sha256:61e4d7473e1f01e9376e4b36534a8ca1e45dfe372f1f35c01 3.84kB / 3.84kB 0.0s
=> => sha256:a63613e3d0001cd8243a5ffe40151d191455620b5301f3a4451ab 293B / 293B 1.0s
=> => extracting sha256:478cb73646107d7b3f891aa53abaed926667463844c07b1d924bd7 5.0s
=> => sha256:19f779ec51dc2dd9084b807db6fd31221ee67991469de1676b581 183B / 183B 1.5s
=> => sha256:4af57dc6fe14ed067848f140368dcc7c66785354a01566d18 4.15kB / 4.15kB 1.9s
=> => sha256:5a6e3f106490c87d33e54628e39bbb60797fa14ed940c0dc98e0a 138B / 138B 2.3s
=> => extracting sha256:a63613e3d0001cd8243a5ffe40151d191455620b5301f3a4451abf 0.0s
=> => extracting sha256:50692d9e73bcef78654de04190467af80a460ad0d05e278d4a655f 2.1s
=> => extracting sha256:19f779ec51dc2dd9084b807db6fd31221ee67991469de1676b5810 0.0s
=> => extracting sha256:4af57dc6fe14ed067848f140368dcc7c66785354a01566d1847a05 0.0s
=> => extracting sha256:5a6e3f106490c87d33e54628e39bbb60797fa14ed940c0dc98e0ad 0.0s
=> ERROR [2/2] RUN bun add prisma 7.0s
------
> [2/2] RUN bun add prisma:
0.476 bun add v1.2.3 (8c4d3ff8)
0.483 Resolving dependencies
6.785 Resolved, downloaded and extracted [98]
6.890 error: Unexpected reading "/home/bun/app/node_modules/esbuild/install.js"
6.890
6.890 Bun v1.2.3 (Linux x64 baseline)
6.890
6.890 error: postinstall script from "esbuild" exited with 1
------
Dockerfile:3
--------------------
1 | FROM oven/bun:1.2.3
2 |
3 | >>> RUN bun add prisma
4 |
5 |
--------------------
ERROR: failed to solve: process "/bin/sh -c bun add prisma" did not complete successfully: exit code: 1
Additional information
This doesn't happen on v1.2.2, only 1.2.3 and above. Also can't reproduce it on my local development machine (Ubuntu, MacOS). For some reason, I can't upgrade the CentOS 7 Server machine used above.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working