Docker container based on Alpine Linux with compiled FFmpeg in pkg-config mode.
You can use it for developing applications on Golang that uses https://github.com/3d0c/gmf
PKG_CONFIG_PATH /usr/local/lib/pkgconfig
FFmpeg files are here:
/opt/ffmpeg/usr/local/lib/#
# BUILD STEP
#
FROM riftbit/ffalpine:latest-go as build-stage
ARG GFM_REPO=3d0c/gmf
RUN go get github.com/${GFM_REPO}
WORKDIR $GOPATH/src/github.com/${GFM_REPO}/examples
RUN mkdir -p /examples && cp ./bbb.mp4 /examples/ && \
go build -o /examples/stress stress.go
#
# RUNTIME STEP
#
FROM riftbit/ffalpine:latest
COPY --from=build-stage /examples /examples
RUN ls -la /examples
WORKDIR /examples
ENTRYPOINT ["./stress"]
Build image:
docker build -t grad .
Test run container:
docker run --rm grad -n 1 -fn decode
Result output
done, press enter to quit
Content type
Image
Digest
Size
26.8 MB
Last updated
over 7 years ago
docker pull riftbit/ffalpine