2023-05-25 14:39:14 +00:00
|
|
|
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:16-alpine
|
2023-05-26 06:31:37 +00:00
|
|
|
EXPOSE 7001
|
|
|
|
ENV NODE_ENV production
|
|
|
|
WORKDIR /app/
|
2023-05-26 06:08:37 +00: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 12:44:41 +00:00
|
|
|
ADD ./workspace/certd-server/ /app/
|
2023-06-28 03:34:37 +00:00
|
|
|
#RUN yarn install --production --registry=https://registry.npmmirror.com
|
|
|
|
RUN yarn install --production
|
2023-05-26 06:39:33 +00:00
|
|
|
RUN npm run build
|
2023-05-26 06:08:37 +00:00
|
|
|
#CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
|
|
|
CMD ["npm", "run","start"]
|
2023-05-26 04:33:03 +00:00
|
|
|
|
2023-05-25 07:17:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|