我正在尝试将 FFmpeg 添加到具有 Alpine 基础镜像的 docker 容器中。我收到此错误
2021-10-26 13:45:42] ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers
[2021-10-26 13:45:42] built with gcc 9.2.0 (Alpine 9.2.0)
[2021-10-26 13:45:42] configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
[2021-10-26 13:45:42] libavutil 56. 31.100 / 56. 31.100
[2021-10-26 13:45:42] libavcodec 58. 54.100 / 58. 54.100
[2021-10-26 13:45:42] libavformat 58. 29.100 / 58. 29.100
[2021-10-26 13:45:42] libavdevice 58. 8.100 / 58. 8.100
[2021-10-26 13:45:42] libavfilter 7. 57.100 / 7. 57.100
[2021-10-26 13:45:42] libavresample 4. 0. 0 / 4. 0. 0
[2021-10-26 13:45:42] libswscale 5. 5.100 / 5. 5.100
[2021-10-26 13:45:42] libswresample 3. 5.100 / 3. 5.100
[2021-10-26 13:45:42] libpostproc 55. 5.100 / 55. 5.100
[2021-10-26 13:45:42] [NULL @ 0x7fd61378e180] Unable to find a suitable output format for 'yarn'
[2021-10-26 13:45:42] yarn: Invalid argument
这是我的 docker 文件FROM node:erbium-alpine
ARG NODE_ENV=development
ENV NODE_ENV=${NODE_ENV}
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app/
RUN apk upgrade -U \
&& apk add ca-certificates ffmpeg libva-intel-driver \
&& rm -rf /var/cache/*
RUN yarn install --frozen-lockfile && \
yarn cache clean
EXPOSE 3030
ENTRYPOINT ["/usr/bin/ffmpeg"]
CMD ["yarn", "start"]
我究竟做错了什么?
最佳答案
通过删除 ENTRYPOINT 来修复它,因为我意识到我不需要它。在我的代码中,我将 ffmpeg 作为子进程旋转
关于docker - 将 ffmpeg 添加到 docker(Alpine 基础镜像),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69724395/