From 39b7b5be5e49026fbd8806cd015ac98e1f5332e6 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Tue, 30 May 2023 17:59:40 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 49884397..16888197 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ FROM registry.s-web.fr/ldc-web/projets/ldc-web-images-docker/ldcweb-production-8.2:latest -COPY . /app/srcs -COPY ./public/build /app/srcs/public/build -COPY ./vendor /app/srcs/vendor \ No newline at end of file +COPY --chown=www-data:www-data . /app/srcs +COPY --chown=www-data:www-data ./public/build /app/srcs/public/build +COPY --chown=www-data:www-data ./vendor /app/srcs/vendor +USER root +RUN chmod -R 755 /app/srcs/storage +USER www-data \ No newline at end of file