mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
chore: node 16
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:16-alpine
|
||||
RUN npm install cross-env -g --registry=https://registry.npmmirror.com
|
||||
RUN npm install pm2 -g --registry=https://registry.npmmirror.com
|
||||
#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/
|
||||
WORKDIR /app/
|
||||
ENV NODE_ENV production
|
||||
RUN yarn install -P --registry=https://registry.npmmirror.com
|
||||
CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
||||
|
||||
#CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
||||
CMD ["npm", "run","start"]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
||||
RUN npm install pm2 -g --registry=https://registry.npmmirror.com
|
||||
CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1"]
|
||||
|
||||
#RUN npm install pm2 -g --registry=https://registry.npmmirror.com
|
||||
EXPOSE 7001
|
||||
#CMD ["pm2-runtime", "start", "./bootstrap.js","--name", "certd","-i","1","--", "-p", "7001"]
|
||||
CMD ["node", "./bootstrap.js"]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user