diff --git a/docker/image/Dockerfile b/docker/image/Dockerfile index 3f7d7355..5f1f1bfd 100644 --- a/docker/image/Dockerfile +++ b/docker/image/Dockerfile @@ -3,13 +3,13 @@ EXPOSE 7001 ENV NODE_ENV production ENV MIDWAY_SERVER_ENV production WORKDIR /app/ -#RUN npm install -g pnpm +RUN npm install -g pnpm #RUN npm install cross-env -g --registry=https://registry.npmmirror.com #RUN npm install pm2 -g --registry=https://registry.npmmirror.com #RUN pm2 install pm2-logrotate ADD ./workspace/certd-server/ /app/ RUN sed -i "s/workspace://g" "/app/package.json" -RUN yarn install --production --registry=https://registry.npmmirror.com +RUN pnpm install --production --registry=https://registry.npmmirror.com #RUN yarn install --production RUN npm run build #CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]