Skip to content

Dockerfiles for building audiowaveform & ffmpeg binaries for use with AWS Lambda.

Notifications You must be signed in to change notification settings

reelcrafter/audiotool-builders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

These are Dockerfiles to conveniently build ffmpeg and audiowaveform so they work in AWS Lambda functions.

Instructions

  1. Clone this repo, and navigate into the folder for the tool you want to build.
  2. The Dockerfiles default to pulling an x86_64 version of Amazon Linux. Feel free to edit the Dockerfile to pull arm64 instead.
  3. Run yarn build, and go brew some coffee—this will take a while!
  4. Run yarn install, which will copy the compiled binary into a bin folder in the current directory.
  5. Finally, run yarn clean to remove the Docker container (this won't remove the binary file you just built).

Using with Lambda

We recommend zipping up the binaries and creating a Lambda Layer so you can reduce the size of your Lambda code bundle, and update the binaries independently of your Lambda function(s).