Commit 35184cca by 陆志强

feat: 代码优化

parent 15a210e1
FROM registry.cn-hangzhou.aliyuncs.com/cduan/customer-resource-base:zabbix
ADD ./ /var/www/web_questionnaire
ENV HOST 0.0.0.0
ENV TZ Asia/Shanghai
WORKDIR /var/www/web_questionnaire
RUN yarn install --registry=https://registry.yarnpkg.com --network-timeout=60000
RUN yarn build:prod
RUN rm -rf assets components layouts middleware pages plugins store .eslintrc.js .gitignore build.yml pDockerfile README.md pStart.sh
EXPOSE 4001
RUN chmod +x start.sh
ENTRYPOINT ["./start.sh"]
FROM registry.cn-hangzhou.aliyuncs.com/cduan/customer-resource-base:nginx
RUN mkdir -p /usr/share/nginx/www/questionnaire
COPY ./dist /usr/share/nginx/www/questionnaire
#!/bin/sh
/etc/init.d/zabbix_agentd start
yarn run pm2:prod
while true
do
sleep 5;
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment