1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

(bug) supervisord: Permission denied: '/var/log/supervisor/supervisord.log'

This commit is contained in:
Sylvain 2022-06-07 16:57:24 +02:00
parent ac16eca60f
commit 8446e084c7

View File

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