From f5b9bb9c9949622f00907bbacdab66c2dc02a72a Mon Sep 17 00:00:00 2001 From: Boy132 Date: Tue, 7 Jan 2025 10:38:33 +0100 Subject: [PATCH] move copy --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b090dad04a..5afc4cd854 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,8 +30,6 @@ COPY Caddyfile /etc/caddy/Caddyfile # Copy the application code to the container COPY . . -COPY --from=yarn /build/public/assets ./public/assets - RUN touch .env RUN composer install --no-dev --optimize-autoloader @@ -42,6 +40,8 @@ RUN yarn run build WORKDIR /var/www/html +COPY --from=yarn /build/public/assets ./public/assets + # Set file permissions RUN chmod -R 755 storage bootstrap/cache \ && chown -R www-data:www-data ./