mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-01 19:38:30 +08:00
1.修复ci-html无法正常更新的bug。2.完善node-express
This commit is contained in:
parent
8a682877b8
commit
fff3810fa8
@ -2,7 +2,9 @@
|
||||
|
||||
while [ true ]
|
||||
do
|
||||
git fetch
|
||||
cd $local_repo
|
||||
git fetch origin $repo_branch
|
||||
git reset --hard origin/$repo_branch
|
||||
rm -rf /usr/share/nginx/html/*
|
||||
cp -r $local_repo/$www_for_repo/* /usr/share/nginx/html
|
||||
sleep 5m
|
||||
|
@ -3,7 +3,6 @@ FROM registry.cn-hangzhou.aliyuncs.com/kennylee/node:alpine
|
||||
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
||||
|
||||
RUN mkdir /src
|
||||
RUN alias cnpm="npm --registry=https://registry.npm.taobao.org --cache=$HOME/.npm/.cache/cnpm --disturl=https://npm.taobao.org/dist --userconfig=$HOME/.cnpmrc"
|
||||
RUN cnpm install express-generator nodemon -g
|
||||
|
||||
WORKDIR /src
|
||||
|
5
node-express/README.md
Normal file
5
node-express/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# node-express
|
||||
|
||||
用来执行express应用的运行环境。
|
||||
|
||||
目录和存放可参考 https://github.com/b00giZm/docker-compose-nodejs-examples/tree/master/00-basic-express-generator
|
Loading…
Reference in New Issue
Block a user