From 2297121effed8e5e62e6e86d3096e3a73fe2675b Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 26 May 2023 14:43:38 +0800 Subject: [PATCH] chore: node 16 --- docker/run/Dockerfile | 7 ++++--- packages/ui/certd-client/.env.production | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/run/Dockerfile b/docker/run/Dockerfile index d0e57fee..7f373b21 100644 --- a/docker/run/Dockerfile +++ b/docker/run/Dockerfile @@ -1,8 +1,9 @@ FROM registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest EXPOSE 7001 -RUN npm install pm2 -g --registry=https://registry.npmmirror.com -CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1","--", "-p", "7001"] -#CMD ["npm","run", "start"] +RUN npm run build +#RUN npm install pm2 -g --registry=https://registry.npmmirror.com +#CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1","--", "-p", "7001"] +CMD ["npm","run", "start"] diff --git a/packages/ui/certd-client/.env.production b/packages/ui/certd-client/.env.production index bc3dbcb7..dde579e5 100644 --- a/packages/ui/certd-client/.env.production +++ b/packages/ui/certd-client/.env.production @@ -1,3 +1,3 @@ -VITE_APP_API=http://www.docmirror.cn:7001/api +VITE_APP_API=/api #登录与权限开启 VITE_APP_PM_ENABLED=true