|
@@ -93,9 +93,8 @@ COPY . .
|
|
|
# 从第一阶段复制构建好的前端资源
|
|
# 从第一阶段复制构建好的前端资源
|
|
|
COPY --from=frontend-builder /app/public/build ./public/build
|
|
COPY --from=frontend-builder /app/public/build ./public/build
|
|
|
|
|
|
|
|
-# 缓存 Laravel 配置和路由
|
|
|
|
|
-RUN php artisan config:cache && \
|
|
|
|
|
- php artisan route:cache && \
|
|
|
|
|
|
|
+# 缓存路由和视图(不缓存配置,配置在运行时从 .env 读取)
|
|
|
|
|
+RUN php artisan route:cache && \
|
|
|
php artisan view:cache && \
|
|
php artisan view:cache && \
|
|
|
php artisan filament:upgrade || true
|
|
php artisan filament:upgrade || true
|
|
|
|
|
|