You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import * as Sentry from "@sentry/bun";
Sentry.init({
dsn: SENTRY_DSN_HERE,
})
console.log("Hello via Bun!");
Dockerfile
FROM oven/bun:1.2.10-debian AS base
WORKDIR /app
FROM base AS deps
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
FROM base AS builder
COPY --from=deps /app/node_modules ./node_modules
COPY package.json bun.lock ./
COPY . .
RUN bun build --compile --minify --sourcemap --bytecode ./index.ts --outfile server
FROM oven/bun:1.2.10-debian AS runner
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
COPY --from=builder /app/server /app/server
COPY --from=deps /app/node_modules ./node_modules
EXPOSE 3000
USER bun
ENTRYPOINT ["/app/server"]
Experimental: Bytecode compilation is an experimental feature introduced in Bun v1.1.30. Only cjs format is supported (which means no top-level-await). Let us know if you run into any issues!
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/bun
SDK Version
9.13.0
Framework Version
bun --revision 1.2.10+db2e7d7f7
Link to Sentry event
No response
Reproduction Example/SDK Setup
Do bun init blank.
index.ts
Dockerfile
run docker build and docker run you get:
Steps to Reproduce
Described above
Expected Result
Should not crash
Actual Result
Crashing
The text was updated successfully, but these errors were encountered: