File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
55WORKDIR /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
1714COPY . .
1815
19- # Expose port (change if needed)
16+ # Expose port
2017EXPOSE 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 " ]
You can’t perform that action at this time.
0 commit comments