certd/docker/image/Dockerfile

21 lines
656 B
Docker
Raw Normal View History

2024-05-30 04:23:36 +00:00
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:18-alpine
2023-05-26 06:31:37 +00:00
EXPOSE 7001
ENV NODE_ENV production
2023-06-29 01:31:26 +00:00
ENV MIDWAY_SERVER_ENV production
2023-05-26 06:31:37 +00:00
WORKDIR /app/
2024-05-30 05:52:24 +00:00
#RUN npm install -g pnpm
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/
2024-05-30 05:59:27 +00:00
RUN sed -i "s/workspace://g" "/app/package.json"
2024-05-30 05:52:24 +00:00
RUN yarn install --production --registry=https://registry.npmmirror.com
2023-06-28 06:34:22 +00:00
#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