add Dockerfile

This commit is contained in:
fullgream 2025-10-15 08:24:04 +03:00
parent f0c77bed3c
commit 04edf580e7

View File

@ -1 +1,15 @@
FROM node:20.8.1
WORKDIR /app
COPY ./src/ .
RUN npm install
COPY ./cookies.txt ./cookies.txt
RUN apt-get update && \
apt-get install -y ffmpeg curl && \
curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2025.09.23/yt-dlp -o /usr/local/bin/yt-dlp && \
chmod +x /usr/local/bin/yt-dlp && \
rm -rf /var/lib/apt/lists/*
#ENTRYPOINT ["yt-dlp", "--version"]
ENTRYPOINT ["node", "bot.js"]