| FROM node:20-bullseye |
|
|
| RUN apt-get update && \ |
| apt-get install -y --no-install-recommends \ |
| python3 \ |
| python3-pip \ |
| python3-dev \ |
| ffmpeg \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| RUN python3 -m pip install --upgrade pip && \ |
| python3 -m pip install --no-cache-dir --upgrade \ |
| spotdl \ |
| yt-dlp |
|
|
| RUN mkdir -p /app/downloads && \ |
| mkdir -p /app/cookies && \ |
| chmod 777 -R /app/downloads && \ |
| chmod 777 -R /app/cookies |
|
|
| WORKDIR /app |
|
|
| COPY package*.json ./ |
| RUN npm install |
|
|
| COPY . . |
|
|
| RUN touch /app/cookies/youtube_cookies.txt && \ |
| chmod 666 /app/cookies/youtube_cookies.txt |
|
|
| CMD ["node", "index.js"] |
|
|
| EXPOSE 7860 |