insha" 99.9% of users won’t need these by default, so there’s no reason to add them automatically. However, it’s easy to preinstall anything you want.
First, decide whether you want to add them to the Apache, Nginx image, or both. In this example, we’ll modify the Nginx image, but the same steps apply to any image.
- Create a new user with plan that has the openpanel/nginx image.
- Switch to the user:
su $username
- Stop the user’s container:
cd /etc/openpanel/docker/compose/$username && docker compose down $username
- Download the source code for the Nginx image: Download Here
- Unzip and navigate into the directory.
- Open the
Dockerfile
and add the following two lines to install FFmpeg & MediaInfo: View Diff Here
- Build the updated image:
docker build . -t openpanel/nginx
- Restart the container:
cd /etc/openpanel/docker/compose/$username && docker compose up -d $username
Now, the user has FFmpeg & MediaInfo preinstalled.
To make this easier, you can build the image once and publish it for free on GitHub or Docker Hub:
Docker Image Push Guide
Then, create a new plan using your custom image name, and it will be automatically downloaded for all new users on that plan.