Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,10 @@ on:
- pull_request

jobs:
build:
name: Build
install:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn install
- run: yarn build

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn install
- run: yarn lint
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- run: bun install
19 changes: 8 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
# Use Node.js 23 base image
FROM node:23
# Use Bun base image
FROM oven/bun:latest

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and package-lock.json before installing dependencies
COPY package*.json ./

# Install npm version 10.9.2
RUN npm install -g npm@10.9.2
# Copy package.json before installing dependencies
COPY package.json ./

# Install project dependencies
RUN npm install
RUN bun install

# Copy the rest of the application files
COPY . .

# Expose port (change if needed)
# Expose port
EXPOSE 3000

# Start the application (modify based on your start script)
CMD ["npm", "start"]
# Start the application
CMD ["bun", "app.js"]
Loading
Loading