fix staticfiles permissions in docker; remove dead css include
This commit is contained in:
		
							parent
							
								
									9cc2e13b2c
								
							
						
					
					
						commit
						95982a7815
					
				| 
						 | 
					@ -21,8 +21,8 @@ RUN pip install -r requirements.txt
 | 
				
			||||||
ADD ./docker/nginx.conf /etc/nginx/nginx.conf
 | 
					ADD ./docker/nginx.conf /etc/nginx/nginx.conf
 | 
				
			||||||
ADD ./docker/supervisord.conf /etc/supervisord.conf
 | 
					ADD ./docker/supervisord.conf /etc/supervisord.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# add user
 | 
					# add user; add nginx to portier group for static file access
 | 
				
			||||||
RUN addgroup -S portier && adduser -S portier -G portier
 | 
					RUN addgroup -S portier && adduser -S portier -G portier && adduser nginx portier
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# add code
 | 
					# add code
 | 
				
			||||||
ADD --chown=portier:portier . /app
 | 
					ADD --chown=portier:portier . /app
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,7 +13,6 @@
 | 
				
			||||||
    <title>{% block 'title' %}portier{% endblock %}</title>
 | 
					    <title>{% block 'title' %}portier{% endblock %}</title>
 | 
				
			||||||
    <link rel="stylesheet" href="{% static 'fonts/inter.css' %}"></link>
 | 
					    <link rel="stylesheet" href="{% static 'fonts/inter.css' %}"></link>
 | 
				
			||||||
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}"></link>
 | 
					    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}"></link>
 | 
				
			||||||
    <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}"></link>
 | 
					 | 
				
			||||||
    {% fontawesome_5_static %}
 | 
					    {% fontawesome_5_static %}
 | 
				
			||||||
    <script src="{% static 'js/jquery.min.js' %}"></script>
 | 
					    <script src="{% static 'js/jquery.min.js' %}"></script>
 | 
				
			||||||
    <script src="{% static 'js/bootstrap.bundle.min.js' %}"></script>
 | 
					    <script src="{% static 'js/bootstrap.bundle.min.js' %}"></script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue