I have a multi-stage Dockerfile, but even with a minimal Dockerfile, bun install hangs indefinely.
ARG DEBIAN_VERSION=bookworm-20230703-slim
FROM --platform=linux/amd64 debian:${DEBIAN_VERSION} as installer
ARG BUN_VERSION=0.6.13
RUN apt-get update && apt-get upgrade
RUN apt-get install unzip
ADD https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/bun-linux-x64.zip bun-linux-x64.zip
RUN unzip bun-linux-x64.zip -d /tmp
RUN cp /tmp/bun-linux-x64/bun /bin/
COPY . .
RUN bun install
CMD ["bun", "src/index.ts"]
{
"name": "eureka-money",
"version": "1.0.44",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "bun run --watch src/index.ts | pino-pretty"
},
"dependencies": {
"elysia": "latest"
},
"devDependencies": {
"bun-types": "latest"
},
"module": "src/index.js"
}