Created
May 13, 2018 01:58
-
-
Save ibejohn818/fae6cfd6ae26de185a61dcd0724e4e7a to your computer and use it in GitHub Desktop.
MP4Box Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.6 AS gpac_builder | |
WORKDIR /app | |
RUN apk update && \ | |
apk add --no-cache \ | |
wget \ | |
g++ \ | |
make \ | |
&& \ | |
wget --no-check-certificate https://codeload.github.com/gpac/gpac/zip/master -O gpac-master.zip && \ | |
unzip gpac-master.zip | |
WORKDIR gpac-master | |
RUN ./configure --use-zlib=no && \ | |
make && \ | |
mkdir -p install/bin && \ | |
cp -R ./bin/gcc ./install/lib && \ | |
rm ./install/lib/gm_* ./install/lib/*.a && \ | |
rm -Rf ./install/lib/temp && \ | |
mv ./install/lib/MP4* ./install/bin | |
FROM alpine:3.6 | |
WORKDIR /app | |
COPY --from=gpac_builder /app/gpac-master/install/lib /usr/lib | |
COPY --from=gpac_builder /app/gpac-master/install/bin /usr/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment