Code refactoring and updated dockerfile

This commit is contained in:
2022-05-06 11:08:33 +02:00
parent e1bffe6ef5
commit 65f838a987
3 changed files with 71 additions and 11 deletions

View File

@@ -8,11 +8,15 @@ RUN apk update
RUN apk add curl wget psmisc python3 ffmpeg
COPY . .
RUN chmod +x ./fetch-yt-dlp.sh
# install pnpm
RUN npm install -g pnpm
# install node dependencies
RUN npm install
RUN npm run build-all
RUN pnpm install
RUN pnpm fetch
RUN pnpm build
RUN pnpm build-server
# cleanup
RUN npm remove parcel
RUN pnpm remove parcel
RUN rm -rf .parcel-cache
# expose and run
EXPOSE 3022