Adding ffmpeg to to docker(Alpine base image)



我正试图将FFmpeg添加到我的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

这是我的dockerfile

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旋转为子进程

相关内容

  • 没有找到相关文章

最新更新