diff --git a/Dockerfile b/Dockerfile index 52b7823..bdf1a99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN npm i -g pnpm WORKDIR /build # Copy package configs into working Directory -COPY ./package.json ./pnpm-lock.yaml ./tsconfig.json /build/ +COPY ./package.json ./pnpm-lock.yaml ./tsconfig.json ./make.js ./sea-config.json /build/ # Install required packages RUN pnpm i @@ -16,7 +16,7 @@ RUN pnpm i COPY ./src /build/src # Compile the project -RUN pnpm run bundle +RUN pnpm run make # Copy built artifacts and dependencies into a minimal release image FROM node:current-alpine AS release diff --git a/src/lib/Subscription.ts b/src/lib/Subscription.ts index abd8f7d..2467d4c 100644 --- a/src/lib/Subscription.ts +++ b/src/lib/Subscription.ts @@ -138,7 +138,7 @@ export default class Subscription { } // Stop searching if we have looked through videosToSearch - if (videosSearched++ >= settings.floatplane.videosToSearch) break; + if (++videosSearched >= settings.floatplane.videosToSearch) break; } }