-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from spongedsc/bun
Bun as package manager and runtime
- Loading branch information
Showing
6 changed files
with
30 additions
and
1,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
node_modules | ||
Dockerfile* | ||
docker-compose* | ||
.dockerignore | ||
.git | ||
.gitignore | ||
README.md | ||
.vscode | ||
.env | ||
node_modules | ||
.editorconfig | ||
temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
FROM node:lts-alpine | ||
FROM oven/bun:alpine | ||
ENV NODE_ENV=production | ||
|
||
RUN npm install -g pnpm | ||
|
||
WORKDIR /app | ||
|
||
COPY ["package.json", "pnpm-lock.yaml", "./"] | ||
COPY ["package.json", "bun.lockb", "./"] | ||
|
||
RUN pnpm install --prod | ||
RUN bun install --frozen-lockfile --production | ||
|
||
COPY . . | ||
|
||
CMD ["node", "index.js"] | ||
USER bun | ||
CMD ["bun", "run", "index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
{ | ||
"name": "spongegpt", | ||
"version": "1.28.4", | ||
"version": "1.29.0", | ||
"description": "custom AI chatbot for discord", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"start": "node index.js", | ||
"dev": "nodemon index.js" | ||
"start": "bun index.js", | ||
"dev": "bun --watch index.js " | ||
}, | ||
"author": "artifish", | ||
"license": "AGPL-3.0", | ||
"dependencies": { | ||
"@discordjs/voice": "^0.16.1", | ||
"axios": "^1.6.8", | ||
"discord.js": "^14.13.0", | ||
"dotenv": "^16.3.1", | ||
"ffmpeg-static": "^5.2.0", | ||
"libsodium-wrappers": "^0.7.13", | ||
"luxon": "^3.4.4", | ||
"msedge-tts": "^1.3.4", | ||
"socket.io-client": "^4.7.2" | ||
}, | ||
"devDependencies": { | ||
"nodemon": "^3.1.0" | ||
} | ||
} |
Oops, something went wrong.