From 95982a781566cd3129ab8cdc61149fa0cf5ef29a Mon Sep 17 00:00:00 2001 From: Jan Koppe Date: Sat, 2 May 2020 00:23:21 +0200 Subject: [PATCH] fix staticfiles permissions in docker; remove dead css include --- Dockerfile | 4 ++-- templates/base.html | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f250c6..84aaead 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,8 @@ RUN pip install -r requirements.txt ADD ./docker/nginx.conf /etc/nginx/nginx.conf ADD ./docker/supervisord.conf /etc/supervisord.conf -# add user -RUN addgroup -S portier && adduser -S portier -G portier +# add user; add nginx to portier group for static file access +RUN addgroup -S portier && adduser -S portier -G portier && adduser nginx portier # add code ADD --chown=portier:portier . /app diff --git a/templates/base.html b/templates/base.html index c0ffa97..3b81048 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,7 +13,6 @@ {% block 'title' %}portier{% endblock %} - {% fontawesome_5_static %}