refactor
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -1,9 +1,14 @@
|
||||
FROM node:14
|
||||
VOLUME /downloads
|
||||
FROM node:16-bullseye
|
||||
RUN mkdir -p /usr/src/yt-dlp-webui/downloadsd
|
||||
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 npm install
|
||||
RUN npm run build
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
RUN chmod +x ./lib/fetch-yt-dlp.sh
|
||||
RUN ./lib/fetch-yt-dlp.sh && mv yt-dlp ./lib
|
||||
EXPOSE 3022
|
||||
CMD [ "node" , "./server.js" ]
|
||||
Reference in New Issue
Block a user