This commit is contained in:
2023-09-11 16:17:34 +08:00
parent c1b84b34ba
commit d66e142ed5
2 changed files with 4 additions and 3 deletions

View File

@@ -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" ]