Skip to content

Commit 44a7290

Browse files
committed
add bun to image
1 parent 7cdfac3 commit 44a7290

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
FROM node:22.21-alpine as builder
1+
FROM node:22.21-alpine AS base
2+
3+
# Install Bun
4+
RUN apk --no-cache add curl bash
5+
RUN curl -fsSL https://bun.com/install | bash
6+
ENV PATH="/root/.bun/bin:${PATH}"
7+
8+
FROM base AS builder
29

310
WORKDIR /app
411

@@ -15,7 +22,7 @@ RUN bun run build
1522

1623

1724

18-
FROM node:22.21-alpine
25+
FROM base
1926

2027
WORKDIR /app
2128

apps/client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
},
3636
"devDependencies": {
3737
"@tanstack/router-plugin": "^1.133.32",
38-
"@types/bun": "^1.3.1",
3938
"@types/node": "^24.9.1",
4039
"@types/react": "^19.2.2",
4140
"@types/react-dom": "^19.2.2",

apps/server/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
// Some stricter flags (disabled by default)
2828
"noUnusedLocals": false,
2929
"noUnusedParameters": false,
30-
"noPropertyAccessFromIndexSignature": false,
31-
"types": ["@types/bun"]
30+
"noPropertyAccessFromIndexSignature": false
3231
},
3332
"include": ["./src/**/*.ts"]
3433
}

0 commit comments

Comments
 (0)