Files
certd/docker/image/Dockerfile

19 lines
582 B
Docker
Raw Normal View History

2023-05-25 22:39:14 +08:00
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:16-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/
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/
2023-06-28 14:34:22 +08:00
RUN yarn install --production --registry=https://registry.npmmirror.com
#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