fix staticfiles permissions in docker; remove dead css include

This commit is contained in:
Jan Koppe 2020-05-02 00:23:21 +02:00
parent 9cc2e13b2c
commit 95982a7815
Signed by: thunfisch
GPG Key ID: BE935B0735A2129B
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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>