Skip to content

Add Dockerfile for libopenshot #997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

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