diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index b997bfb..fc5db4d 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -110,9 +110,7 @@ RUN \ mkdir logs && \ mkdir -p tmp/cache/models && \ mkdir -p tmp/cache/persistent && \ - mkdir -p tmp/cache/views && \ - chown -R www-data:www-data /var/www/gib-potato/logs && \ - chown -R www-data:www-data /var/www/gib-potato/tmp + mkdir -p tmp/cache/views COPY ./docker/backend/run.sh /run.sh RUN chmod +x /run.sh diff --git a/docker/backend/run.sh b/docker/backend/run.sh index 3f32f3d..99cf482 100755 --- a/docker/backend/run.sh +++ b/docker/backend/run.sh @@ -2,4 +2,7 @@ bin/cake migrations migrate +chown -R www-data:www-data logs +chown -R www-data:www-data tmp + exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf