2024-05-30 12:23:36 +08:00
|
|
|
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:18-alpine
|
2023-05-26 14:31:37 +08:00
|
|
|
EXPOSE 7001
|
|
|
|
|
ENV NODE_ENV production
|
2023-06-29 09:31:26 +08:00
|
|
|
ENV MIDWAY_SERVER_ENV production
|
2023-05-26 14:31:37 +08:00
|
|
|
WORKDIR /app/
|
2024-05-30 13:52:24 +08:00
|
|
|
#RUN npm install -g pnpm
|
2023-05-26 14:08:37 +08:00
|
|
|
#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
|
2023-05-25 20:44:41 +08:00
|
|
|
ADD ./workspace/certd-server/ /app/
|
2024-05-30 13:52:24 +08:00
|
|
|
RUN sed -i "s/\"workspace:/\"/g" "/app/package.json
|
|
|
|
|
RUN yarn install --production --registry=https://registry.npmmirror.com
|
2023-06-28 14:34:22 +08:00
|
|
|
#RUN yarn install --production
|
2023-05-26 14:39:33 +08:00
|
|
|
RUN npm run build
|
2023-05-26 14:08:37 +08:00
|
|
|
#CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
|
|
|
|
CMD ["npm", "run","start"]
|
2023-05-26 12:33:03 +08:00
|
|
|
|
2023-05-25 15:17:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|