Public Repository

Last pushed: a year ago
Short Description
alpine - node v5 - npm 3.5 - ffmpeg 3.0.1 (only gif for input and mp4 for output) ~98MB
Full Description
FROM mhart/alpine-node
MAINTAINER James Woodrow <james@just-help.me>

ENV FFMPEG_VERSION=3.0.1

# Install FFMPEG
RUN apk add --update build-base curl nasm tar bzip2 \
  zlib-dev openssl-dev yasm-dev lame-dev libogg-dev x264-dev libvpx-dev libvorbis-dev x265-dev freetype-dev libass-dev libwebp-dev rtmpdump-dev libtheora-dev opus-dev && \

  DIR=$(mktemp -d) && cd ${DIR} && \

  curl -s http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.gz | tar zxvf - -C . && \
  cd ffmpeg-${FFMPEG_VERSION} && \
  ./configure \
  --disable-everything --enable-pthreads --enable-gpl --enable-libx264 --enable-encoder=libx264 --enable-decoder=gif --enable-muxer=mp4 --enable-demuxer=gif --disable-ffplay --disable-ffprobe --disable-ffserver --enable-protocol=file --enable-filter=scale && \
  make && \
  make install && \
  make distclean && \

  rm -rf ${DIR} && \
  apk del build-base curl tar bzip2 x264 openssl nasm && rm -rf /var/cache/apk/*

Credits to mhart for node + npm on alpine for ~30MB and to opencoconut for the basis for a light ffmpeg compilation for alpine

Docker Pull Command
Owner
hooop

Comments (0)