Docker audiowaveform Alpine Builder
Build side docker container to use in multistage builds for reducing total container size
- Source repo bbc/audiowaveform
- This repo is alpine Dockerfile with audiowaveform building in it
- Docker Hub Container with compiled audiowaveform binaries. (audiowaveform and audiowaveform_test are in /bin directory)
Link container and copy binaries from it. Don't forget about required libraries.
FROM alpine:latest
# Add audiowaveform runtime dependencies
# https://github.com/bbc/audiowaveform#package
RUN apk add --no-cache libmad libsndfile libid3tag gd boost
# Copy the static binary from this container
COPY --from=csandman/audiowaveform /bin/audiowaveform /usr/local/bin
# Optionally copy the test library over as well
# COPY --from=csandman/audiowaveform /bin/audiowaveform_test /usr/local/bin
- bbc/audiowaveform — The original project
- realies/audiowaveform-docker — The first docker example
- gsix/docker-audiowaveform-alpine — The second docker example