Skip to content

Instantly share code, notes, and snippets.

@ibejohn818
Created May 13, 2018 01:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibejohn818/fae6cfd6ae26de185a61dcd0724e4e7a to your computer and use it in GitHub Desktop.
Save ibejohn818/fae6cfd6ae26de185a61dcd0724e4e7a to your computer and use it in GitHub Desktop.
MP4Box Docker
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