Add bun to node
FROM node:20.9.0-bullseye-slim
RUN apt update && apt install git curl unzip -y && curl -fsSL https://bun.sh/install | bash && corepack enable
ENV BUN_INSTALL`="/root/.bun"
ENV PATH=$BUN_INSTALL/bin:$PATH
CMD [ "bash" ]
# docker build . -t huakunshen/bun-node
# docker buildx build --push \
# --platform linux/arm64/v8,linux/arm/v7,linux/amd64 \
# -t huakunshen/bun-node .
# docker run -it --rm huakunshen/bun-node
Content type
Image
Digest
sha256:1b3a1002b…
Size
152.1 MB
Last updated
almost 3 years ago
docker pull huakunshen/bun-node