Commit d898fe50 by xiawei

pDockerfile

parent 55d4b418
FROM registry.cn-hangzhou.aliyuncs.com/open_images/node12.13.1-pm2-zabbix
ADD ./ /var/www/web_live
EXPOSE 3000
ENV TZ Asia/Shanghai
WORKDIR "/var/www/web_live"
RUN chmod +x pStart.sh && \
yarn install && \
yarn build:private && \\
shopt -s extglob && \\
rm -rf !(node_modules|nuxt-dist|static|package.json|nuxt.config.js|pm2.json|pDockerfile|pStart.sh)
ENTRYPOINT ["./start.sh"]
#!/bin/sh
/etc/init.d/zabbix_agentd start && \
npm config set scripts-prepend-node-path true && \
yarn run pm2:private
while true
do
sleep 5;
done
\ No newline at end of file
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