Refactoring code and structure

This commit is contained in:
2022-01-29 14:48:58 +01:00
parent 416ccab7ef
commit 4d54ea04b9
16 changed files with 132 additions and 44 deletions

View File

@@ -9,8 +9,8 @@ RUN apt-get install psmisc
RUN npm install
COPY . .
RUN npm run build
RUN chmod +x ./lib/fetch-yt-dlp.sh
RUN ./lib/fetch-yt-dlp.sh && mv yt-dlp ./lib
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" ]