Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

Optimize Docker image build

Open pheiduck opened this issue 10 months ago • 7 comments

Description of Changes

The system-intensive installation steps take place before the application files are copied. This means that they remain cached - even if the application source code changes - and packages do not have to be downloaded again with every docker-compose up.


Checklist

General

Documentation

UI Changes (if applicable)

  • [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR)

Testing (if applicable)

  • [ ] I have tested my changes locally. Refer to the Testing Guide for more details.

pheiduck avatar Feb 09 '25 10:02 pheiduck

/deploypr

Frooodle avatar Feb 10 '25 10:02 Frooodle

🚀 PR Test Deployment

Your PR has been deployed for testing!

🔗 Test URL: http://185.252.234.121:2913

This deployment will be automatically cleaned up when the PR is closed.

github-actions[bot] avatar Feb 10 '25 10:02 github-actions[bot]

/deploypr

Frooodle avatar Feb 10 '25 14:02 Frooodle

image Seems like this PR increases docker size slightly? maybe caused by additional run commands?

Frooodle avatar Feb 10 '25 14:02 Frooodle

image Seems like this PR increases docker size slightly? maybe caused by additional run commands?

I think this is expected as things are cached. But it can shrink down diskusage I have some experience from the wg-easy project.

pheiduck avatar Feb 10 '25 16:02 pheiduck

/deploypr

Frooodle avatar Feb 11 '25 16:02 Frooodle

🚀 PR Test Deployment

Your PR has been deployed for testing!

🔗 Test URL: http://185.252.234.121:2913

This deployment will be automatically cleaned up when the PR is closed.

github-actions[bot] avatar Feb 11 '25 16:02 github-actions[bot]