2026-04-07 21:58:18 -04:00
|
|
|
FROM node:20-alpine
|
2026-05-23 16:05:41 -04:00
|
|
|
# yt-dlp powers the YouTube importer; python3 is its runtime dep.
|
2026-05-29 19:51:27 -04:00
|
|
|
# Not from apk: the packaged yt-dlp goes stale and YouTube breaks old versions.
|
|
|
|
|
# Pull the latest python-zipapp release (runs on musl via system python3) so a
|
|
|
|
|
# rebuild always refreshes it. /usr/local/bin precedes /usr/bin on PATH.
|
|
|
|
|
RUN apk add --no-cache ffmpeg python3 curl \
|
|
|
|
|
&& curl -fsSL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp \
|
|
|
|
|
-o /usr/local/bin/yt-dlp \
|
|
|
|
|
&& chmod a+rx /usr/local/bin/yt-dlp
|
2026-04-07 21:58:18 -04:00
|
|
|
WORKDIR /app
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
RUN npm install --omit=dev
|
|
|
|
|
COPY . .
|
|
|
|
|
CMD ["node", "src/index.js"]
|