Zenika / alpine-chrome

Chrome Headless docker images built upon alpine official image
https://hub.docker.com/r/zenika/alpine-chrome
Apache License 2.0
1.78k stars 239 forks source link

Bun Support #235

Open mjarkk opened 10 months ago

mjarkk commented 10 months ago

Context

I would like to use bun together with chrome and it would be nice if there was a docker version that included the bun binary.

Alternatives

I should be able to write a dockerfile myself but it requires just a shitload of time as that's not my day to day activity and someone else also has to go trough the same thing probably.

So far I have not succeeded in installing bun within a alpine chrome container.

Has the feature been requested before?

Doesn't seem like

If the feature request is accepted, would you be willing to submit a PR?

Looking at the other Dockerfiles in this repo I'm not sure if I'm smart enough to complete that hehe

Yes / No (Help can be provided if you need assistance submitting a PR)

Probably.

zigarn commented 10 months ago

https://gitlab.alpinelinux.org/alpine/aports/-/issues/13998 is not encouraging, but can try to build from scratch with glibc installed (like for deno). Can inspire from https://github.com/oven-sh/bun/blob/main/dockerhub/Dockerfile-alpine

HugoGresse commented 2 months ago

We can install bun easily with :

RUN apk --no-cache add bash curl
RUN curl -fsSL https://bun.sh/install | bash

but bun has some issues with arch (x86/arm): 0.050 OrbStack ERROR: Dynamic loader not found: /lib64/ld-linux-x86-64.so.2 (running on M3)