feat: 修复Dockerfile功能以及部分配置文件
This commit is contained in:
parent
3119616c60
commit
3fdf1be604
@ -18,4 +18,4 @@ RUN npm config set registry https://registry.npmmirror.com
|
||||
RUN npm install
|
||||
|
||||
# 运行您的应用
|
||||
CMD ["npm", "run", "dev"]
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -10,8 +10,5 @@
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
],
|
||||
"ts-node": {
|
||||
"esm": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user