File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1+ # CI workflows
2+ .github /
3+
14# flyctl launch added from .gitignore
25# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
36
Original file line number Diff line number Diff line change 1- FROM oven/bun AS build
1+ FROM docker.io/oven/bun:1-alpine AS builder
2+
3+ RUN apk add python3
24
35WORKDIR /app
46
@@ -9,14 +11,17 @@ RUN bun install --frozen-lockfile
911
1012COPY src ./src
1113
12- RUN bun build ./src/index.ts --compile --outfile bot
14+ RUN bun build --compile --minify --sourcemap --bytecode --outfile bot ./src/index.ts
15+
16+ FROM docker.io/alpine:3
1317
14- FROM ubuntu:22.04
18+ # For some reason, Bun single-file executables targeting musl require libstdc++
19+ RUN apk --no-cache add libstdc++
1520
1621WORKDIR /app
1722
18- COPY --from=build /app/bot /app/bot
23+ COPY --from=builder /app/bot /app/bot
1924
2025ENV TZ=America/Indiana/Indianapolis
2126
22- CMD ["/app/bot" ]
27+ ENTRYPOINT ["/app/bot" ]
You can’t perform that action at this time.
0 commit comments