Publish Livewire assets in Docker build
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-31 22:10:11 +01:00
parent e39ddd2143
commit e233cddcc8
2 changed files with 21 additions and 0 deletions

View File

@@ -100,6 +100,8 @@ COPY . .
COPY --from=vendor /var/www/html/vendor ./vendor COPY --from=vendor /var/www/html/vendor ./vendor
COPY --from=node_builder /var/www/html/public/build ./public/build COPY --from=node_builder /var/www/html/public/build ./public/build
RUN php artisan vendor:publish --tag=livewire:assets --force --no-interaction
RUN php artisan config:clear \ RUN php artisan config:clear \
&& php artisan config:cache \ && php artisan config:cache \
&& php artisan route:clear \ && php artisan route:clear \

View File

@@ -0,0 +1,19 @@
<?php
namespace Tests\Unit;
use Tests\TestCase;
class LivewireAssetsPublishingTest extends TestCase
{
public function test_dockerfile_publishes_livewire_assets(): void
{
$dockerfile = file_get_contents(base_path('Dockerfile'));
$this->assertNotFalse($dockerfile);
$this->assertStringContainsString(
'vendor:publish --tag=livewire:assets',
$dockerfile
);
}
}