Implement hCaptcha solving via 2Captcha & other stuff
- implement hCaptcha solving via paid service 2Captcha and browser automation library Playwright with rebrowser-patches - implement sunoApi instances caching so sessions won't be constantly updated - add support for entering cookies not only in SUNO_COOKIE, but also the Cookie HTTP header - update docs and add Russian docs
This commit is contained in:
+5
-1
@@ -12,10 +12,14 @@ WORKDIR /app
|
||||
COPY package*.json ./
|
||||
|
||||
ARG SUNO_COOKIE
|
||||
RUN if [ -z "$SUNO_COOKIE" ]; then echo "SUNO_COOKIE is not set" && exit 1; fi
|
||||
ARG BROWSER
|
||||
RUN if [ -z "$SUNO_COOKIE" ]; then echo "Warning: SUNO_COOKIE is not set"; fi
|
||||
ENV SUNO_COOKIE=${SUNO_COOKIE}
|
||||
RUN if [ -z "$BROWSER" ]; then echo "Warning: BROWSER is not set; will use chromium by default"; fi
|
||||
ENV BROWSER=${BROWSER:-chromium}
|
||||
|
||||
RUN npm install --only=production
|
||||
RUN npx playwright install $BROWSER
|
||||
COPY --from=builder /src/.next ./.next
|
||||
EXPOSE 3000
|
||||
CMD ["npm", "run", "start"]
|
||||
|
||||
Reference in New Issue
Block a user