generated from fahricansecer/boilerplate-fe
feat: add yt-dlp and ffmpeg for video download support
All checks were successful
UI Deploy - indir.bilgich.com 🎨 / build-and-deploy (push) Successful in 2m55s
All checks were successful
UI Deploy - indir.bilgich.com 🎨 / build-and-deploy (push) Successful in 2m55s
This commit is contained in:
@@ -26,6 +26,15 @@ RUN npm run build
|
||||
FROM node:20-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
# yt-dlp ve ffmpeg kurulumu (video indirme için gerekli)
|
||||
RUN apk add --no-cache \
|
||||
python3 \
|
||||
py3-pip \
|
||||
ffmpeg \
|
||||
curl \
|
||||
&& curl -L 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
|
||||
|
||||
ENV NODE_ENV production
|
||||
# Güvenlik: Root kullanıcı kullanmıyoruz
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
|
||||
Reference in New Issue
Block a user