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