mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(docker): ship versions.json in production image
Closes #11868 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
12fd9e448b
commit
6b3f60c7d6
@@ -183,6 +183,8 @@ COPY --chown=www-data:www-data resources/views ./resources/views
|
||||
COPY --chown=www-data:www-data artisan artisan
|
||||
COPY --chown=www-data:www-data openapi.yaml ./openapi.yaml
|
||||
COPY --chown=www-data:www-data changelogs/ ./changelogs/
|
||||
# Version data for Traefik, Sentinel, and helper checks until CheckForUpdatesJob refreshes it
|
||||
COPY --chown=www-data:www-data versions.json ./versions.json
|
||||
|
||||
RUN composer dump-autoload
|
||||
|
||||
|
||||
@@ -222,3 +222,13 @@ it('guides issue authors to the correct contribution branch', function () {
|
||||
->toContain('Feature code should branch from `next` and target `next`')
|
||||
->toContain('Small fixes should target `main`; larger changes should target `next`');
|
||||
});
|
||||
|
||||
it('ships versions.json in the production image so version checks work right after an upgrade', function () {
|
||||
$dockerfile = file_get_contents(dirname(__DIR__, 2).'/docker/production/Dockerfile');
|
||||
$dockerignore = file_get_contents(dirname(__DIR__, 2).'/.dockerignore');
|
||||
|
||||
expect($dockerfile)
|
||||
->toContain('COPY --chown=www-data:www-data versions.json ./versions.json')
|
||||
->and($dockerignore)
|
||||
->not->toMatch('/^\/?versions\.json$/m');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user