From 6f3f8ca38d5b3793f31f47174e8b4eb3f478d062 Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Mon, 13 Apr 2020 08:24:00 +0100 Subject: [PATCH] Changed permissions RUN command Now only chmods storage and bootstrap to speed up building the image --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7def9f57..ff5d60dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,11 +28,15 @@ RUN cd /app/site \ # Copy supervisor queue worker config RUN cp /setup/laravel-worker.conf /opt/docker/etc/supervisor.d/ +# Copy entry script +RUN cp /setup/entrypoint/init.sh /entrypoint.d \ + && chmod +x /setup/entrypoint/init.sh + # Set permissions for files -RUN cp /setup/entrypoint/init.sh /entrypoint.d -RUN chmod +x /setup/entrypoint/init.sh -RUN chown -R application:application /app -RUN chmod -R 775 /app +RUN chown -R application:application /app/site/storage \ + && chmod -R 775 /app/site/storage \ + && chown -R application:application /app/site/bootstrap \ + && chmod -R 775 /app/site/bootstrap # Cleanup setup files RUN rm -r /setup