In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The nginx version is 1.16.1, the basic image is alpine-linux, and the final image size is 25.7m.
FROM alpine:latestENV ng_config / usr/local/nginx-1.16.1ADD nginx-1.16.1.tar.gz / usr/local/RUN CONFIG= "\-prefix=/usr/local/nginx\-user=nginx\-group=nginx\-with-http_ssl_module\-with-http_gzip_static_module\-with-http_image_filter_module\-with-http_stub_status_module\" & & addgroup-S nginx\ & & adduser-D-S -h / var/cache/nginx-s / sbin/nologin-G nginx nginx\ & & apk add-- no-cache-- virtual. Build-deps\ gcc gaming + pcre pcre-dev expat-dev perl zlib-dev libxml2-dev make openssl openssl-dev bzip2-dev gd gd-dev\ & & rm-rf / var/cache/apk/*\ & & cd $ng_config\ &. / configure $CONFIG\ & & sed-ri "s/-Werror//" $ng_config/objs/Makefile\ & & make\ & & make install\ # clear the virtual package # & & runDeps= "$(\ scanelf-- needed-- nobanner-- format'% naughp'-- recursive / usr/local\ | tr' | sort-u\ | awk 'system ("[- e / usr/local/lib/" $1 "]") = = 0 {next} {print "so:" $1}'\) "\ & & apk add-- no-cache $runDeps\ & & apk del. Build-deps\ & rm-rf $ng_config## # expose 80 443WORKDIR / usr/local/nginx/ENTRYPOINT [". / sbin/nginx" "- g", "daemon off "]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.