Skip to content

Commit 4bf2759

Browse files
committed
feat: add dockerfile
1 parent 2072cd5 commit 4bf2759

6 files changed

Lines changed: 26 additions & 6 deletions

File tree

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Configuration files
5+
config.json
6+
*.env
7+
8+
# Other
9+
.devcontainer/
10+
.github/
11+
.vscode/

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: CI
22

33
on:
44
push:
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515
- uses: oven-sh/setup-bun@v1
16-
- name: format and lint
16+
- name: Format and Lint
1717
run: |
1818
bun install --frozen-lockfile
1919
bun format:ci

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Dependencies
22
node_modules/
33

4-
# Build output
5-
dist/
6-
74
# Configuration files
85
config.json
96
*.env

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM oven/bun:1 AS base
2+
3+
WORKDIR /usr/src/app
4+
COPY . .
5+
6+
ENV NODE_ENV=production
7+
RUN bun install --frozen-lockfile --production
8+
9+
# run the app
10+
USER bun
11+
ENTRYPOINT [ "bun", "start" ]

bun.lockb

13.7 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
},
2222
"dependencies": {
2323
"@uwu/configmasher": "latest",
24-
"discord.js": "^14.15.3"
24+
"discord.js": "^14.15.3",
25+
"octokit": "^4.0.2"
2526
},
2627
"trustedDependencies": [
2728
"@biomejs/biome"

0 commit comments

Comments
 (0)