temp: plan docker

This commit is contained in:
熊潇 2024-11-28 23:22:36 +08:00
parent ba52909d9d
commit 16ebf78f56
3 changed files with 15 additions and 3 deletions

0
docker/.env.example Normal file
View File

15
docker/package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "docker",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"docker:build": "docker build -t docker.xiongxiao.me/code-flow:v0.0.2 .",
"docker:push": "docker push docker.xiongxiao.me/code-flow:v0.0.2",
"docker:run": "docker run -it --name code-flow -p 4000:4000 docker.xiongxiao.me/code-flow:v0.0.2"
},
"keywords": [],
"author": "abearxiong <xiongxiao@xiongxiao.me>",
"license": "MIT",
"type": "module"
}

View File

@ -14,9 +14,6 @@
"deploy": "rsync -avz --delete ./dist/ --exclude='app.config.json5' light:~/apps/codeflow/backend",
"clean": "rm -rf dist",
"reload": "ssh light pm2 restart codeflow",
"docker:build": "docker build -t docker.xiongxiao.me/code-flow:v0.0.2 .",
"docker:push": "docker push docker.xiongxiao.me/code-flow:v0.0.2",
"docker:run": "docker run -it --name code-flow -p 4000:4000 docker.xiongxiao.me/code-flow:v0.0.2",
"pub": "npm run build && npm run deploy && npm run reload",
"apps:build": "rollup -c rollup.apps.config.mjs",
"apps:watch": "rollup -c rollup.apps.config.mjs -w"