Files
yt-dlp-webui/Dockerfile

17 lines
438 B
Docker

FROM node:16-bullseye
RUN mkdir -p /usr/src/yt-dlp-webui/download
VOLUME /usr/src/yt-dlp-webui/downloads
WORKDIR /usr/src/yt-dlp-webui
COPY package*.json ./
RUN apt-get update
RUN apt-get install curl ffmpeg -y
RUN apt-get install psmisc
RUN npm install
COPY . .
RUN npm run build
RUN chmod +x ./server/fetch-yt-dlp.sh
RUN ./server/fetch-yt-dlp.sh && mv yt-dlp ./server
RUN rm -rf .parcel-cache
EXPOSE 3022
CMD [ "node" , "./server.js" ]