From 1cefcaa4859707ee11b2c3617bc03f8b3b74f57d Mon Sep 17 00:00:00 2001 From: studebacon <64607989+studebacon@users.noreply.github.com> Date: Sat, 23 Jan 2021 11:21:55 -0600 Subject: [PATCH] Bugfix - Production Django container would get stuck in a restart loop due do a lack of permission on the /app/ghostwriter/media folder. Running mkdir /app/ghostwriter/media prior to chown -R django /app in the Dockerfile corrects the issue. --- compose/production/django/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose/production/django/Dockerfile b/compose/production/django/Dockerfile index 5f6a5c618..ce791788e 100644 --- a/compose/production/django/Dockerfile +++ b/compose/production/django/Dockerfile @@ -45,6 +45,8 @@ RUN chmod +x /seed_data RUN mkdir -p /app/staticfiles +RUN mkdir -p /app/ghostwriter/media + RUN chown -R django /app USER django