Skip to content

Conversation

aperture147
Copy link
Contributor

This Dockerfile streamlines the process of bundling libopenshot and its necessary libraries into a single container image, facilitating its deployment as a rendering service.

The standard dependency installation procedure outlined in the libopenshot wiki can result in a significantly larger Docker image due to the inclusion of development dependencies. To mitigate this, the following Dockerfile has been optimized to produce a minimal production-ready image (approximately 800MB unpacked).

The image creation employs a multi-stage build approach:

  1. Build Stage: This stage encompasses the installation of build-time dependencies and the compilation of the libopenshot library.
  2. Run Stage: This subsequent stage focuses on installing only the essential runtime library dependencies and incorporates the compiled libopenshot artifact from the build stage.

By generating a smaller container image, the cold-start latency when initiating a new libopenshot instance is reduced. This optimization is particularly beneficial for cost-sensitive deployments such as those utilizing RunPod and AWS Fargate, where billing occurs even during the initial spin-up phase.

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.89%. Comparing base (e76a3de) to head (6a2b3f7).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #997   +/-   ##
========================================
  Coverage    54.89%   54.89%           
========================================
  Files          185      185           
  Lines        16800    16800           
========================================
  Hits          9222     9222           
  Misses        7578     7578           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant