Skip to content
This repository was archived by the owner on Jun 5, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (24 loc) · 1.13 KB

File metadata and controls

42 lines (24 loc) · 1.13 KB

Heroku buildpack: audiowaveform

This is a Heroku buildpack for using audiowaveform.

Lineage

Originally based on Mattchewone/heroku-buildpack-audiowaveform.

Compatibility

Tested on the Heroku-20 stack.

Dependencies

We build and ship our own version of audiowaveform.

Heroku must have the dependencies required installed. We do this using heroku-buildpack-apt. The required dependencies are:

libmad0-dev
libid3tag0-dev
libsndfile1-dev
libgd-dev

Add them to Aptfile in the root of your application.

Building the audiowaveform binary

Build the binary inside the Docker image

docker build . -f Dockerfile -t audiowaveform-builder

Copy the built binary to /dist/

docker run -it -v (pwd)/dist/:/dist --rm audiowaveform-builder cp /build/audiowaveform-1.5.1/audiowaveform /dist/audiowaveform/bin/

Create an archive

cd build/
tar -zcvf audiowaveform.tar.gz audiowaveform