Added docker scripts

This commit is contained in:
2023-02-13 17:57:32 +07:00
parent de88fde29b
commit 9c28c38acc

View File

@@ -6,7 +6,11 @@
"author": "Yuzu | ユズ ♡ <yuzu@kirameki.cafe>", "author": "Yuzu | ユズ ♡ <yuzu@kirameki.cafe>",
"license": "GPL-3.0", "license": "GPL-3.0",
"scripts": { "scripts": {
"build": "tsc", "tsc": "tsc",
"build": "tsc -b",
"docker-build": "docker build . -t ghcr.io/yuzuzensai/trollssh:latest",
"docker-run": "docker run -d --name trollssh --mount type=bind,source=\"$(pwd)\"/config,target=/home/node/app/config --network host --env-file .env ghcr.io/yuzuzensai/trollssh:latest",
"docker-push": "docker push ghcr.io/yuzuzensai/trollssh:latest",
"dev": "ts-node-dev --respawn --transpile-only src/index.ts" "dev": "ts-node-dev --respawn --transpile-only src/index.ts"
}, },
"devDependencies": { "devDependencies": {