From 8446e084c7fd4ea155a211638f69ab4c88d3142e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 7 Jun 2022 16:57:24 +0200 Subject: [PATCH] (bug) supervisord: Permission denied: '/var/log/supervisor/supervisord.log' --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 58e638276..b8966087b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,8 @@ COPY Gemfile /tmp/ COPY Gemfile.lock /tmp/ RUN bundle config set --local without 'development test doc' && bundle install && bundle binstubs --all -# Prepare the application directory +# Prepare the application directories +RUN mkdir -p /var/log/supervisor && chown -R fabmanager:fabmanager /var/log/supervisor RUN mkdir -p /usr/src/app && chown -R fabmanager:fabmanager /usr/src/app # Change to non-root user USER fabmanager