Skip to content

Commit

Permalink
chore: setup dockerfile with bun
Browse files Browse the repository at this point in the history
  • Loading branch information
tfkhdyt committed Sep 27, 2023
1 parent 9fee11c commit 85be8f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1,924 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM node:lts-alpine3.18
FROM oven/bun

WORKDIR /app

COPY . .

RUN npx pnpm i
RUN npm run generate
RUN bun i && \
bun run generate

ENTRYPOINT [ "npm", "start" ]
RUN rm -rf node_modules && \
bun i -p

ENTRYPOINT [ "bun", "start" ]
Binary file added bun.lockb
Binary file not shown.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"format": "prettier -w ./src/",
"lint": "tsc --noEmit && eslint --fix src/",
"build": "tsc",
"start": "tsx ./src/main.ts",
"start": "bun run ./src/main.ts",
"generate": "drizzle-kit generate:pg"
},
"keywords": [],
Expand All @@ -18,20 +18,17 @@
"dependencies": {
"cheerio": "1.0.0-rc.12",
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"drizzle-orm": "^0.28.6",
"postgres": "^3.3.5",
"telegraf": "^4.14.0"
},
"devDependencies": {
"@flydotio/dockerfile": "latest",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"bun-types": "^1.0.3",
"drizzle-kit": "^0.19.13",
"eslint": "^8.50.0",
"prettier": "^3.0.3",
"tsx": "^3.13.0",
"typescript": "^5.2.2"
}
}
Loading

0 comments on commit 85be8f2

Please sign in to comment.