Skip to content
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

Static build with extra options for backend linux #4

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

srubin
Copy link

@srubin srubin commented Feb 3, 2021

Got this working with the build

docker build --tag=descript:ffmpeg --output type=local,dest=build -f full-static.dockerfile .

Or, on ARM macOS, after enabling experimental features in Docker Desktop:

docker buildx build --platform linux/amd64 --tag=descript:ffmpeg --output type=local,dest=build -f full-static.dockerfile .

Copy the ffprobe/ffmpeg binaries from the docker image:

# find the image id in the list above (look for repository: descript, tag: ffmpeg)
docker image ls 

# create a container
docker create <IMAGE ID>


docker cp <CONTAINER ID>:ffmpeg ./build
docker cp <CONTAINER ID>:ffprobe ./build
docker rm <CONTAINER ID>

Then, to publish ffprobe/ffmpeg that were newly built in build/ (in ffmpeg-ffprobe-static compatible format):

./publish-to-s3.sh <BUCKET/PATH/TO/TAG> linux x64

@srubin srubin self-assigned this Feb 3, 2021
@srubin srubin requested a review from marcello3d February 3, 2021 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants