Skip to content

Commit

Permalink
chore: switching back from Bun to Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Jul 1, 2024
1 parent 1959721 commit bc7cbc3
Show file tree
Hide file tree
Showing 16 changed files with 16,004 additions and 31 deletions.
4 changes: 0 additions & 4 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ docker compose up -d \

#### Install Languages and Runtimes

Install Bun for your platform:

https://bun.sh

Install [NVM](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating).

Install Node.js v20.x with NVM and set it as default:
Expand Down
8 changes: 4 additions & 4 deletions idp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM oven/bun:1-alpine
FROM node:20-alpine

WORKDIR /app

COPY src ./src
COPY templates ./templates
COPY .env .
COPY package.json .
COPY bun.lockb .
COPY package-lock.json .
COPY tsconfig.json .

RUN bun install --frozen-lockfile
RUN npm ci --legacy-peer-deps

ENTRYPOINT ["bun", "run", "start"]
ENTRYPOINT ["npm", "run", "start"]

EXPOSE 8081
10 changes: 5 additions & 5 deletions idp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
Install dependencies:

```shell
bun i
npm i --legacy-peer-deps
```

Run for development:

```shell
bun run dev
npm run dev
```

Run for production:

```shell
bun run start
npm run start
```

Lint code:

```shell
bun run lint
npm run lint
```

Format code:

```shell
bun run format
npm run format
```

Build Docker image:
Expand Down
Binary file removed idp/bun.lockb
Binary file not shown.
Loading

0 comments on commit bc7cbc3

Please sign in to comment.