Files
yt-dlp-webui/Dockerfile
2022-11-05 15:35:29 +01:00

19 lines
446 B
Docker

FROM node:16-alpine3.16
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 ./
# install core dependencies
RUN apk update
RUN apk add curl wget psmisc python3 ffmpeg
COPY . .
RUN chmod +x ./fetch-yt-dlp.sh
# install node dependencies
RUN npm
RUN npm run build
RUN npm run build-server
RUN npm run fetch
# expose and run
EXPOSE 3022
CMD [ "node" , "./dist/main.js" ]