File tree 1 file changed +6
-5
lines changed 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,27 @@ FROM node:18 AS builder
2
2
3
3
WORKDIR /app
4
4
5
- # Install build dependencies
6
- RUN apt update -y && apt install git build-essential make python3 -y
7
5
# Copy package files first to leverage cache
8
6
COPY package.json yarn.lock ./
9
7
COPY drift-common/protocol/sdk/package.json ./drift-common/protocol/sdk/
10
8
COPY drift-common/common-ts/package.json ./drift-common/common-ts/
11
9
10
+ # Install build dependencies
11
+ RUN npm install -g bun
12
+
12
13
ENV NODE_ENV=production
13
14
14
15
WORKDIR /app/drift-common/protocol/sdk
15
16
COPY drift-common/protocol/sdk/ .
16
- RUN yarn && yarn build
17
+ RUN bun install && bun run build
17
18
18
19
WORKDIR /app/drift-common/common-ts
19
20
COPY drift-common/common-ts/ .
20
- RUN yarn && yarn build
21
+ RUN bun install && bun run build
21
22
22
23
WORKDIR /app
23
24
COPY . .
24
- RUN yarn && yarn build
25
+ RUN bun install && bun run build
25
26
26
27
FROM node:18-alpine
27
28
COPY --from=builder /app/dist/ ./lib/
You can’t perform that action at this time.
0 commit comments