ffmpeg 基础镜像
https://ffmpeg.org/releases/
wget https://ffmpeg.org/releases/ffmpeg-4.3.1.tar.gz
dockerfile
FROM registry.cn-hangzhou.aliyuncs.com/kattgatt-base/centos79-ali-gcc:v1.1
MAINTAINER zhaozhiyong "715740383@qq.com"
#USER root
WORKDIR /opt
ADD ./ffmpeg-4.3.1.tar.gz .
RUN pwd
RUN ls -l
RUN ls -l /opt/ffmpeg-4.3.1/configure
#RUN cd /opt/ffmpeg-4.3.1 && ./configure --prefix=/opt/ffmpeg --disable-x86asm && make && make install
RUN cd /opt/ffmpeg-4.3.1 && ./configure --disable-x86asm && make && make install
RUN ffmpeg -version
#CMD ["tail","-f","/etc/hosts"]
configure 后边不配置路径,就不需要配置环境变量了
build.sh
[root@harbor 1ffmpeg]# cat build.sh
#!/bin/bash
imagename=ffmpeg4.3.1-centos79:v1.1
docker build -t registry.cn-hangzhou.aliyuncs.com/kattgatt-base/$imagename --no-cache -f Dockerfile . --progress=plain
docker push registry.cn-hangzhou.aliyuncs.com/kattgatt-base/$imagename
{#more-18259}
./configure --prefix=/opt/ffmpeg --disable-x86asm && make && make install