caffco/get-audio-duration

issue on server

Opened this issue · 5 comments

Error: Command failed with exit code 1: /app/node_modules/.pnpm/@ffprobe-installer+linux-x64@5.2.0/node_modules/@ffprobe-installer/linux-x64/ffprobe -v error -select_streams a:0 -show_format -show_streams https://cdn.test.kr/music/Til Until.mp3

it works well locally but when i build it in docker (server) it crashes with that error what can i do?

Could you provide a minimal Docker image reproducing the error?

FROM node:lts-alpine
RUN apk update &&
apk add --no-cache ffmpeg

WORKDIR /app

RUN npm i -g pnpm

COPY package.json ./
COPY .npmrc ./
RUN pnpm i

COPY . .
RUN npm run build

ENV BODY_SIZE_LIMIT=1003045462

ENTRYPOINT [ "npm", "start" ]

this is my dockerfile

I faced a similar issue on node alpine where ffprobe fails during DNS resolution.

It is indeed the same issue as @TheTBO mentions, also mentioned in this issue from a related package

We were able to fix this issue by installing ffmpeg in our docker image. My full solution notes can be found here