Skip to content

Commit 1424dd7

Browse files
committed
Bun it up
1 parent e1d0408 commit 1424dd7

4 files changed

Lines changed: 714 additions & 2111 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,8 @@ jobs:
88
name: Build
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2
13-
- run: yarn install
14-
- run: yarn build
11+
- uses: actions/checkout@v6
12+
- uses: oven-sh/setup-bun@v2
13+
- run: bun install
14+
- run: bun run build
1515

16-
lint:
17-
name: Lint
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-node@v2
22-
- run: yarn install
23-
- run: yarn lint

Dockerfile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
# Use Node.js 23 base image
2-
FROM node:23
1+
# Use Bun base image
2+
FROM oven/bun:latest
33

44
# Set the working directory inside the container
55
WORKDIR /app
66

7-
# Copy package.json and package-lock.json before installing dependencies
8-
COPY package*.json ./
9-
10-
# Install npm version 10.9.2
11-
RUN npm install -g npm@10.9.2
7+
# Copy package.json before installing dependencies
8+
COPY package.json ./
129

1310
# Install project dependencies
14-
RUN npm install
11+
RUN bun install
1512

1613
# Copy the rest of the application files
1714
COPY . .
1815

19-
# Expose port (change if needed)
16+
# Expose port
2017
EXPOSE 3000
2118

22-
# Start the application (modify based on your start script)
23-
CMD ["npm", "start"]
19+
# Start the application
20+
CMD ["bun", "app.js"]

0 commit comments

Comments
 (0)