[mod]
This commit is contained in:
parent
c1b84b34ba
commit
d66e142ed5
@ -33,5 +33,5 @@ EXPOSE 3003
|
||||
|
||||
WORKDIR /app
|
||||
# 指定啟動container後執行命令
|
||||
CMD NODE_ENV=prod && node index.js
|
||||
# CMD [ "npm", "start" ]
|
||||
# CMD NODE_ENV=prod && node index.js
|
||||
CMD [ "npm", "run", "prod" ]
|
@ -6,7 +6,8 @@
|
||||
"scripts": {
|
||||
"start": "npm run dev",
|
||||
"dev": "tsrpc-cli dev",
|
||||
"prod": "node index.js",
|
||||
"prod": "NODE_ENV=prod && node index.js",
|
||||
"winprod": "NODE_ENV=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\"",
|
||||
"build": "tsrpc-cli build",
|
||||
"doc": "tsrpc-cli doc",
|
||||
|
Loading…
Reference in New Issue
Block a user