Skip to content

Commit e9a1742

Browse files
committed
Update dockerfile
1 parent b763ccb commit e9a1742

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile.prod

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ COPY --from=vuejs /app/public/js/ /var/www/html/public/js/
6363
COPY --from=vuejs /app/public/css/ /var/www/html/public/css/
6464
COPY --from=vuejs /app/mix-manifest.json /var/www/html/mix-manifest.json
6565

66-
RUN php artisan key:generate --ansi && php artisan storage:link && php artisan config:cache && php artisan route:cache
66+
67+
68+
69+
RUN rm -rf /var/www/html/public/storage
6770

6871

6972
# these directories need to be writable by Apache
@@ -84,6 +87,9 @@ RUN chown -R www-data:www-data \
8487

8588
RUN chmod -R 775 /var/www/html/storage
8689

90+
RUN php artisan key:generate --ansi \
91+
&& php artisan storage:link
92+
8793
VOLUME ["/var/www/html/storage", "/var/www/html/bootstrap/cache"]
8894

8995
EXPOSE 80

0 commit comments

Comments
 (0)