diff --git a/.dockerignore b/.dockerignore index b3abea9..01f702c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,4 +3,5 @@ node_modules storage/logs storage/framework/cache/data - .env \ No newline at end of file + .env + public/storage \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 7b1c6b1..da87088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,9 @@ RUN docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \ # On récupère tout ce qui a été préparé dans l’étape build COPY --from=build /var/www/html /var/www/html +# Création du symlink storage +RUN php artisan storage:link + # On désactive l'ENTRYPOINT par défaut de l'image de base ENTRYPOINT []