Skip to content

Commit 754866b

Browse files
authored
use bun for build (#29)
1 parent 9f85765 commit 754866b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@ FROM node:18 AS builder
22

33
WORKDIR /app
44

5-
# Install build dependencies
6-
RUN apt update -y && apt install git build-essential make python3 -y
75
# Copy package files first to leverage cache
86
COPY package.json yarn.lock ./
97
COPY drift-common/protocol/sdk/package.json ./drift-common/protocol/sdk/
108
COPY drift-common/common-ts/package.json ./drift-common/common-ts/
119

10+
# Install build dependencies
11+
RUN npm install -g bun
12+
1213
ENV NODE_ENV=production
1314

1415
WORKDIR /app/drift-common/protocol/sdk
1516
COPY drift-common/protocol/sdk/ .
16-
RUN yarn && yarn build
17+
RUN bun install && bun run build
1718

1819
WORKDIR /app/drift-common/common-ts
1920
COPY drift-common/common-ts/ .
20-
RUN yarn && yarn build
21+
RUN bun install && bun run build
2122

2223
WORKDIR /app
2324
COPY . .
24-
RUN yarn && yarn build
25+
RUN bun install && bun run build
2526

2627
FROM node:18-alpine
2728
COPY --from=builder /app/dist/ ./lib/

0 commit comments

Comments
 (0)