Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsbuild build command does not exit when ran inside docker using bun. #12419

Open
m4r1vs opened this issue Jul 7, 2024 · 1 comment
Open
Labels
bug Something isn't working needs triage

Comments

@m4r1vs
Copy link

m4r1vs commented Jul 7, 2024

What version of Bun is running?

1.1.18+5a0b93523 (inside Docker image oven/bun:alpine, oven/bun:1 and oven/bun:debian)

What platform is your computer?

Linux 6.5.0-41-generic x86_64 x86_64 running Docker version 27.0.1, build 7fafd33

What steps can reproduce the bug?

  1. Create Rspack project with bun create rsbuild@latest.
  2. Create following Dockerfile:
FROM oven/bun:alpine as webinterface-builder

COPY rspack-project /app/rspack-project

WORKDIR /app/rspack-project

RUN bun install
RUN bun run build
CMD ["echo 'never reached'"]
  1. Run docker build -t my-container .
  2. Observe that the project is build correctly but the container creation is stuck after bun run build and "never reached" is never printed.

What is the expected behavior?

The docker image builds and is not stuck.

What do you see instead?

 => => #   dist/static/js/index.8b25dab0.js           24.8 kB     7.9 kB
 => => #   dist/static/js/lib-polyfill.84abecef.js    40.5 kB     12.4 kB
 => => #   dist/static/js/lib-react.0b11da2f.js       140.3 kB    45.0 kB
 => => #   dist/static/js/877.f4d2276a.js             325.1 kB    99.5 kB
 => => #   Total size:  556.0 kB
 => => #   Gzipped size:  174.2 kB

Forever.

Additional information

Works fine outside of Docker.

@m4r1vs m4r1vs added bug Something isn't working needs triage labels Jul 7, 2024
@m4r1vs
Copy link
Author

m4r1vs commented Jul 8, 2024

See rspack issue for more details and another workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant