This commit is contained in:
建喵 2023-09-11 16:16:25 +08:00
parent df3970d8b0
commit c1b84b34ba
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ RUN npm prune --prod
# move # move
RUN rm -rf /app \ RUN rm -rf /app \
&& mv dist /app \ && mv dist /app \
&& mv certificate /app \
&& mv .env /app \ && mv .env /app \
&& mv node_modules /app/ \ && mv node_modules /app/ \
&& rm -rf /src && rm -rf /src

View File

@ -6,6 +6,7 @@
"scripts": { "scripts": {
"start": "npm run dev", "start": "npm run dev",
"dev": "tsrpc-cli dev", "dev": "tsrpc-cli dev",
"prod": "node index.js",
"debug": "set NODE_ENV=dev && nodemon --exec \"node --require ts-node/register --inspect=127.0.0.1:9229 src/index.ts\"", "debug": "set NODE_ENV=dev && nodemon --exec \"node --require ts-node/register --inspect=127.0.0.1:9229 src/index.ts\"",
"build": "tsrpc-cli build", "build": "tsrpc-cli build",
"doc": "tsrpc-cli doc", "doc": "tsrpc-cli doc",