FROM node:18-bookworm
ENV NODE_ENV=production
RUN apt-get update
RUN apt-get install -y ffmpeg yt-dlp
WORKDIR /app
COPY ["package.json", "./"]
RUN npm install --omit=dev
COPY . .
CMD ["node", "."]