-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
500d7b2
commit 3ca15c5
Showing
13 changed files
with
61 additions
and
367 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,5 +1,4 @@ | ||
* | ||
!src | ||
!tsconfig.json | ||
!package.json | ||
!pnpm-lock.yaml | ||
!bun.lockb |
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,5 +1,4 @@ | ||
.env | ||
ip.log | ||
dist | ||
node_modules | ||
.vscode |
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,23 +1,10 @@ | ||
FROM node:20-alpine as base | ||
# PNPM | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
# Setup | ||
ENV CI=true | ||
WORKDIR /app | ||
ADD ./package.json ./pnpm-lock.yaml ./ | ||
|
||
FROM oven/bun:1 as base | ||
|
||
FROM base as builder | ||
RUN pnpm install | ||
ADD . . | ||
RUN pnpm run build | ||
WORKDIR /app | ||
COPY package.json bun.lockb /app/ | ||
RUN bun install --production --frozen-lockfile | ||
|
||
FROM base | ||
RUN pnpm install --prod | ||
COPY --from=builder /app/dist/ /app/dist/ | ||
COPY . . | ||
|
||
STOPSIGNAL SIGTERM | ||
|
||
CMD ["pnpm", "start"] | ||
CMD ["bun", "."] |
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,23 +1,20 @@ | ||
{ | ||
"version": "1.3.4", | ||
"version": "1.4.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "dist", | ||
"main": "./src/index.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"dev": "tsc -w", | ||
"start": "node ." | ||
"check": "tsc --noEmit", | ||
"dev": "bun --watch ./src/index.ts", | ||
"start": "bun ./src/index.ts" | ||
}, | ||
"dependencies": { | ||
"axios": "^1.6.7", | ||
"dotenv": "^16.4.5", | ||
"node-cron": "^3.0.3", | ||
"croner": "^8.0.1", | ||
"winston": "^3.11.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.11.20", | ||
"@types/node-cron": "^3.0.11", | ||
"@types/bun": "^1.0.7", | ||
"typescript": "^5.3.3" | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
Oops, something went wrong.