From 6553817016a79015f37dba381b2c7d0d1f3cb8a9 Mon Sep 17 00:00:00 2001 From: zen Date: Wed, 31 Jul 2024 11:53:51 +0800 Subject: [PATCH] =?UTF-8?q?apk=20=E7=9B=B4=E6=8E=A5=E5=AE=89=E8=A3=85=20ff?= =?UTF-8?q?mpeg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1226a69..b1c5894 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ LABEL authors="zen" # docker exec -it test ash # docker run -dit --name test --rm -v '/media/zen/Windows 11/Users/zen/Github/ConvertVideo:/app' golang:1.22.3-alpine3.19 ash RUN cp /etc/apk/repositories /etc/apk/repositories.bak -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors4.tuna.tsinghua.edu.cn/g' /etc/apk/repositories +#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors4.tuna.tsinghua.edu.cn/g' /etc/apk/repositories RUN apk update RUN go env -w GO111MODULE=on RUN go env -w GOPROXY=https://goproxy.cn,direct @@ -13,18 +13,11 @@ RUN mkdir -p /root/app WORKDIR /root/app COPY . . -RUN apk add opencore-amr-dev libvorbis-dev mediainfo build-base xz wget ca-certificates dialog make cmake alpine-sdk gcc nasm yasm aom-dev libvpx-dev libwebp-dev x264-dev x265-dev dav1d-dev xvidcore-dev fdk-aac-dev opencore-amr-dev libvorbis-dev +RUN apk add ffmpeg opencore-amr-dev libvorbis-dev mediainfo build-base xz wget ca-certificates dialog make cmake alpine-sdk gcc nasm yasm aom-dev libvpx-dev libwebp-dev x264-dev x265-dev dav1d-dev xvidcore-dev fdk-aac-dev opencore-amr-dev libvorbis-dev RUN go build -o /usr/local/bin/conv main.go RUN chmod +x /usr/local/bin/conv -RUN wget https://ffmpeg.org/releases/ffmpeg-7.0.1.tar.xz -RUN tar xvf ffmpeg-7.0.1.tar.xz -WORKDIR /root/app/ffmpeg-7.0.1 -RUN ./configure --prefix=/usr/local --enable-pthreads --enable-pic --arch=amd64 --enable-shared --enable-libaom --enable-gpl --enable-nonfree --enable-postproc --enable-avfilter --enable-pthreads --enable-libx264 --enable-libx265 --enable-libwebp --enable-libvpx --enable-libvorbis --enable-libfdk-aac --enable-libdav1d --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-ffplay -RUN make -j -# RUN make -j4 -RUN make install WORKDIR /root/app RUN rm -rf ffmpeg-7.0.1.tar.xz ffmpeg-7.0.1 CMD ["conv"]