feat: 修复Dockerfile功能以及部分配置文件

This commit is contained in:
克洛伊尔 2024-11-01 17:52:19 +08:00
parent 3119616c60
commit 3fdf1be604
3 changed files with 5 additions and 8 deletions

View File

@ -2,16 +2,16 @@
"name": "qqbot",
"version": "1.0.0",
"description": "Cloyir's QQBot",
"main": "index.ts",
"main": "src/index.ts",
"type": "module",
"scripts": {
"dev": "deno run -A src/index.ts",
"test": "/root/.deno/bin/deno run -A ./src/index.js",
"test": "/root/.deno/bin/deno run -A ./src/index.ts",
"nodemon": "deno run -A --watch src/index.ts",
"build:linux": "deno compile --no-check -o dist/test --target x86_64-unknown-linux-gnu -A src/index.ts",
"build:win": "deno compile --no-check -o dist/test --target x86_64-pc-windows-msvc -A src/index.ts",
"docker": "docker build -t qqbot-image .",
"docker:run": "docker run -d --rm --name qqbot-image-app -v ./db:/app/db qqbot-image"
"docker:run": "docker run -d --rm --name qqbot-image-app -v ./db:/app/db -p 3000:3000 qqbot-image"
},
"author": "mine123456@foxmail.com",
"license": "ISC",

View File

@ -10,8 +10,5 @@
},
"include": [
"src/**/*.ts",
],
"ts-node": {
"esm": true
}
]
}