mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Reduce number of layer (#2078)
Somes layer are created and aren't usefull, so I compress this :)
This commit is contained in:
		
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -13,8 +13,8 @@ RUN apk --no-cache add \
 | 
				
			|||||||
    s6 \
 | 
					    s6 \
 | 
				
			||||||
    curl \
 | 
					    curl \
 | 
				
			||||||
    openssh \
 | 
					    openssh \
 | 
				
			||||||
    tzdata
 | 
					    tzdata \
 | 
				
			||||||
RUN addgroup \
 | 
					  && addgroup \
 | 
				
			||||||
    -S -g 1000 \
 | 
					    -S -g 1000 \
 | 
				
			||||||
    git && \
 | 
					    git && \
 | 
				
			||||||
  adduser \
 | 
					  adduser \
 | 
				
			||||||
@@ -26,9 +26,9 @@ RUN addgroup \
 | 
				
			|||||||
    git && \
 | 
					    git && \
 | 
				
			||||||
  echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
 | 
					  echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV USER git
 | 
					ENV USER git \
 | 
				
			||||||
ENV GITEA_CUSTOM /data/gitea
 | 
					    GITEA_CUSTOM /data/gitea \
 | 
				
			||||||
ENV GODEBUG=netdns=go
 | 
					    GODEBUG=netdns=go
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VOLUME ["/data"]
 | 
					VOLUME ["/data"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user