You've already forked postfixadmin-docker
							
							fix(Dockerfile): checkout master
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										15
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -51,15 +51,18 @@ RUN set -ex; \
 | 
			
		||||
      | cut -d: -f1 \
 | 
			
		||||
      | sort -u \
 | 
			
		||||
      | xargs -rt apt-mark manual; \
 | 
			
		||||
  apt-get purge --yes --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
 | 
			
		||||
  rm --recursive --force /var/lib/apt/lists/*
 | 
			
		||||
 | 
			
		||||
RUN set -eu; \
 | 
			
		||||
    if [ ! -z ${POSTFIXADMIN_VERSION} ]; then \
 | 
			
		||||
      curl --fail --silent --show-error --location "https://github.com/postfixadmin/postfixadmin/archive/postfixadmin-${POSTFIXADMIN_VERSION}.tar.gz" --output postfixadmin.tar.gz; \
 | 
			
		||||
      tar --extract --file postfixadmin.tar.gz --directory /var/www/html --strip-components=1; \
 | 
			
		||||
      rm postfixadmin.tar.gz; \
 | 
			
		||||
  # Does not exist in tarball but is required
 | 
			
		||||
  mkdir --parents /var/www/html/templates_c; \
 | 
			
		||||
    else \
 | 
			
		||||
      apt-get install --yes git; \
 | 
			
		||||
      git clone https://github.com/postfixadmin/postfixadmin.git /var/www/html; \
 | 
			
		||||
    fi; \
 | 
			
		||||
    apt-get purge --yes --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
 | 
			
		||||
    rm --recursive --force /var/lib/apt/lists/*
 | 
			
		||||
 | 
			
		||||
RUN mkdir --parents /var/www/html/templates_c; \
 | 
			
		||||
    chown --recursive www-data:www-data /var/www/html
 | 
			
		||||
 | 
			
		||||
COPY entrypoint.sh /usr/local/bin/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user