Commit c50a116d by xiaolanchong

docker

parent db7ad12c
...@@ -7,4 +7,6 @@ ENV TZ Asia/Shanghai ...@@ -7,4 +7,6 @@ ENV TZ Asia/Shanghai
WORKDIR "/var/www/web_live" WORKDIR "/var/www/web_live"
RUN npm install pm2 -g && npm install && npm run build
ENTRYPOINT ["./start.sh"] ENTRYPOINT ["./start.sh"]
#!/bin/sh #!/bin/sh
VETSION=1.0.0 VETSION=latest
docker login --username=cuiboqian@1812501212048408 registry.cn-hangzhou.aliyuncs.com docker login --username=cuiboqian@1812501212048408 registry.cn-hangzhou.aliyuncs.com
docker build -t registry.cn-hangzhou.aliyuncs.com/cduan/web-live:$VETSION . docker build -t registry.cn-hangzhou.aliyuncs.com/cduan/web-live:$VETSION .
......
#!/bin/sh #!/bin/sh
npm install -g pm2 &&
npm install &&
npm run build &&
npm run pm2 npm run pm2
while true while true
......
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