diff --git a/Dockerfile b/Dockerfile index 5db4cb9..21a4112 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/angular.cn/Dockerfile b/angular.cn/Dockerfile index a246738..324b08b 100644 --- a/angular.cn/Dockerfile +++ b/angular.cn/Dockerfile @@ -1,14 +1,8 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine -ENV APPDIR /usr/share/nginx/web +ENV APPDIR /usr/share/nginx/html RUN mkdir -p $APPDIR WORKDIR $APPDIR - ADD ./code $APPDIR - -COPY web.conf /etc/nginx/conf.d -RUN cat /etc/nginx/conf.d/web.conf - -EXPOSE 60016 \ No newline at end of file diff --git a/angular.cn/README.md b/angular.cn/README.md index b30528b..917206b 100644 --- a/angular.cn/README.md +++ b/angular.cn/README.md @@ -1,7 +1,7 @@ angular.cn --- -> Port: `60016` - [ant-design](https://angular.cn/) - [Github](https://github.com/ant-design/ant-design) +> [ant-design](https://angular.cn/) - [Github](https://github.com/ant-design/ant-design) ```shell docker pull wcjiang/angular.cn:latest @@ -10,5 +10,5 @@ docker pull wcjiang/angular.cn:latest Run Server ```shell -docker run --name angular.cn -p 60016:60016 --restart=always -d wcjiang/angular.cn:latest +docker run --name angular.cn -p 60016:80 --restart=always -d wcjiang/angular.cn:latest ``` diff --git a/angular.cn/web.conf b/angular.cn/web.conf deleted file mode 100644 index aa42868..0000000 --- a/angular.cn/web.conf +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 60016; - root /usr/share/nginx/web; - location / { - try_files $uri $uri/ /index.html =404; - } -} \ No newline at end of file diff --git a/ant.design/Dockerfile b/ant.design/Dockerfile index 63d7ff8..324b08b 100644 --- a/ant.design/Dockerfile +++ b/ant.design/Dockerfile @@ -1,14 +1,8 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine -ENV APPDIR /usr/share/nginx/web +ENV APPDIR /usr/share/nginx/html RUN mkdir -p $APPDIR WORKDIR $APPDIR - ADD ./code $APPDIR - -COPY web.conf /etc/nginx/conf.d -RUN cat /etc/nginx/conf.d/web.conf - -EXPOSE 60001 \ No newline at end of file diff --git a/ant.design/README.md b/ant.design/README.md index eb31522..33b3929 100644 --- a/ant.design/README.md +++ b/ant.design/README.md @@ -1,7 +1,7 @@ ant.design --- -> Port: `60001` - [ant-design](https://ant.design/) - [Github](https://github.com/ant-design/ant-design) +> [ant-design](https://ant.design/) - [Github](https://github.com/ant-design/ant-design) ```shell docker pull wcjiang/ant.design:latest @@ -10,5 +10,5 @@ docker pull wcjiang/ant.design:latest Run Server ```shell -docker run --name ant.design -p 60001:60001 --restart=always -d wcjiang/ant.design:latest +docker run --name ant.design -p 60001:80 --restart=always -d wcjiang/ant.design:latest ``` \ No newline at end of file diff --git a/ant.design/web.conf b/ant.design/web.conf deleted file mode 100644 index 0554705..0000000 --- a/ant.design/web.conf +++ /dev/null @@ -1,7 +0,0 @@ -server { - listen 60001; - root /usr/share/nginx/web; - location / { - try_files $uri $uri/ /index.html =404; - } -} \ No newline at end of file diff --git a/cn.eslint.org/Dockerfile b/cn.eslint.org/Dockerfile index 19c7428..79743a1 100644 --- a/cn.eslint.org/Dockerfile +++ b/cn.eslint.org/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/cn.vuejs.org/Dockerfile b/cn.vuejs.org/Dockerfile index d1ddce9..c5380d6 100644 --- a/cn.vuejs.org/Dockerfile +++ b/cn.vuejs.org/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/deno-manual-cn/Dockerfile b/deno-manual-cn/Dockerfile index 128a17e..a6b2b86 100644 --- a/deno-manual-cn/Dockerfile +++ b/deno-manual-cn/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/docker-compose.yml b/docker-compose.yml index 38f2466..b187f14 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,11 +3,11 @@ services: angular.cn: image: wcjiang/angular.cn:latest ports: - - 60016:60016 + - 60016:80 ant.design: image: wcjiang/ant.design:latest ports: - - 60001:60001 + - 60001:80 cn.eslint.org: image: wcjiang/ant.design:latest ports: diff --git a/element.eleme.io/Dockerfile b/element.eleme.io/Dockerfile index 289a32c..2fb1f91 100644 --- a/element.eleme.io/Dockerfile +++ b/element.eleme.io/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/element.react/Dockerfile b/element.react/Dockerfile index 084cb06..542b1b4 100644 --- a/element.react/Dockerfile +++ b/element.react/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/expressjs.com/Dockerfile b/expressjs.com/Dockerfile index ed6235a..85b5237 100644 --- a/expressjs.com/Dockerfile +++ b/expressjs.com/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/graphql.github.io/Dockerfile b/graphql.github.io/Dockerfile index b7681a8..a1459cd 100644 --- a/graphql.github.io/Dockerfile +++ b/graphql.github.io/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/jestjs.io/Dockerfile b/jestjs.io/Dockerfile index 7c86314..4d25a06 100644 --- a/jestjs.io/Dockerfile +++ b/jestjs.io/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/koajs.com/Dockerfile b/koajs.com/Dockerfile index 11b140c..d0ee479 100644 --- a/koajs.com/Dockerfile +++ b/koajs.com/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/react-native/Dockerfile b/react-native/Dockerfile index afbfab3..fd200cb 100644 --- a/react-native/Dockerfile +++ b/react-native/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/sequelize.org/Dockerfile b/sequelize.org/Dockerfile index 16ba947..6162f03 100644 --- a/sequelize.org/Dockerfile +++ b/sequelize.org/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/typeorm.github.io/Dockerfile b/typeorm.github.io/Dockerfile index 12cdab9..0313a94 100644 --- a/typeorm.github.io/Dockerfile +++ b/typeorm.github.io/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/typescriptlang.org/Dockerfile b/typescriptlang.org/Dockerfile index 07c72a9..76752c6 100644 --- a/typescriptlang.org/Dockerfile +++ b/typescriptlang.org/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/uiwjs.github.io/Dockerfile b/uiwjs.github.io/Dockerfile index 5c61103..2c4fce3 100644 --- a/uiwjs.github.io/Dockerfile +++ b/uiwjs.github.io/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/webpack.js.org/Dockerfile b/webpack.js.org/Dockerfile index 63ce280..670c7b6 100644 --- a/webpack.js.org/Dockerfile +++ b/webpack.js.org/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR diff --git a/zh-hans.reactjs.org/Dockerfile b/zh-hans.reactjs.org/Dockerfile index 20faf45..40d5489 100644 --- a/zh-hans.reactjs.org/Dockerfile +++ b/zh-hans.reactjs.org/Dockerfile @@ -1,5 +1,5 @@ # 构建镜像的基础源镜像 -FROM nginx:1.19.6 +FROM nginx:1-alpine ENV APPDIR /usr/share/nginx/web RUN mkdir -p $APPDIR