mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Move static file collection from docker entrypoint to Dockerfile to reduce superflous work
This commit is contained in:
		@@ -65,3 +65,5 @@ COPY src/ /usr/src/paperless/src/
 | 
			
		||||
COPY data/ /usr/src/paperless/data/
 | 
			
		||||
COPY media/ /usr/src/paperless/media/
 | 
			
		||||
 | 
			
		||||
# Collect static files
 | 
			
		||||
RUN sudo -HEu paperless /usr/src/paperless/src/manage.py collectstatic --clear --no-input
 | 
			
		||||
@@ -55,15 +55,10 @@ migrations() {
 | 
			
		||||
    fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
collectstatic() {
 | 
			
		||||
    sudo -HEu paperless "/usr/src/paperless/src/manage.py" "collectstatic" "--clear" "--no-input"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
initialize() {
 | 
			
		||||
    map_uidgid
 | 
			
		||||
    set_permissions
 | 
			
		||||
    migrations
 | 
			
		||||
    collectstatic
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
install_languages() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user