update
This commit is contained in:
		
							
								
								
									
										20
									
								
								nginx/Dockerfile-1.20
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								nginx/Dockerfile-1.20
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
ARG             ARCH
 | 
			
		||||
FROM            harbor.colben.cn/general/alpine$ARCH:3.15
 | 
			
		||||
MAINTAINER      Colben colbenlee@gmail.com
 | 
			
		||||
ADD             --chown=root:root /ADD/ /opt/
 | 
			
		||||
RUN             apk update \
 | 
			
		||||
                    && apk add --no-cache nginx nginx-mod-stream \
 | 
			
		||||
                    && sed -i \
 | 
			
		||||
                        -e '1a\\n# Added by Dockerfile' \
 | 
			
		||||
                        -e '1adaemon off;' \
 | 
			
		||||
                        -e '1apid /run/nginx/nginx.pid;' \
 | 
			
		||||
                        -e '1aworker_rlimit_nofile 65535;' \
 | 
			
		||||
                        -e '/^user /s/^/#/' \
 | 
			
		||||
                        -e '/^worker_processes /s/^/#/' \
 | 
			
		||||
                        -e '/worker_connections/s/[0-9]\+/10240/' \
 | 
			
		||||
                        /etc/nginx/nginx.conf \
 | 
			
		||||
                    && chown nginx:nginx /run/nginx \
 | 
			
		||||
                    && chmod 0755 /var/lib/nginx \
 | 
			
		||||
                    && rm -rf /var/cache/apk/* /etc/nginx/http.d/*
 | 
			
		||||
CMD             ["/opt/ccmd"]
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user