-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,111 additions
and
35 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,3 +1,4 @@ | ||
node_modules | ||
out | ||
.env | ||
kubeconfig.yaml |
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,10 +1,19 @@ | ||
FROM oven/bun:1-slim | ||
FROM node:20-alpine as builder | ||
|
||
RUN npm install -g pnpm | ||
|
||
WORKDIR /app | ||
COPY package.json bun.lockb ./ | ||
COPY package.json pnpm-lock.yaml ./ | ||
|
||
RUN bun install | ||
RUN pnpm install | ||
|
||
COPY index.ts . | ||
|
||
CMD ["bun", "start"] | ||
RUN pnpm build | ||
|
||
FROM node:20-alpine as runner | ||
|
||
WORKDIR /app | ||
COPY --from=builder /app/out/index.js index.js | ||
|
||
CMD ["node", "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,20 +1,25 @@ | ||
{ | ||
"name": "workspace-bot", | ||
"module": "index.ts", | ||
"type": "module", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "bun run --watch index.ts", | ||
"start": "bun run index.ts" | ||
}, | ||
"devDependencies": { | ||
"bun-types": "latest" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.0.0" | ||
"dev": "tsx watch index.ts", | ||
"build": "esbuild index.ts --bundle --platform=node --outdir=out", | ||
"start": "node out" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "GPL-3.0-only", | ||
"dependencies": { | ||
"@kubernetes/client-node": "next", | ||
"@kubernetes/client-node": "1.0.0-rc3", | ||
"dayjs": "^1.11.10", | ||
"discord.js": "^14.14.1" | ||
"discord.js": "^14.14.1", | ||
"dotenv": "^16.3.1" | ||
}, | ||
"devDependencies": { | ||
"esbuild": "^0.19.8", | ||
"tsx": "^4.6.1", | ||
"typescript": "^5.3.2" | ||
} | ||
} |
Oops, something went wrong.