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