Skip to content

Docker build failing (command not found: ./scripts/update_adblock_hosts.sh) #883

Description

@janwillemwilmsen

Hi there,
Managed to get the Renderscript app working locally (after pulling the latest github version, and updating Playwright to the latest version, and commenting out // '--disk-cache-dir=/dev/null', in src/lib/browser/constants.ts, and switching to Node 18.18.2 ).

But when trying to create the Docker container I get errors saying :
RUN yarn build: 7.258 command not found: ./scripts/update_adblock_hosts.sh.

When building with this : "build": "yarn clean && yarn tsc" the container is created, but you get errors trying to run the container:
err: Error: Error while setting up adblocker at Adblocker.load (/app/renderscript/dist/lib/browser/Adblocker.js:27:42) at async Object.init (/app/renderscript/dist/lib/singletons.js:13:9) at async /app/renderscript/dist/index.js:58:5, extra: { err: [Error: ENOENT: no such file or directory, open '/app/renderscript/dist/lib/browser/adblock_hosts.txt'] { errno: -2, code: 'ENOENT', syscall: 'open', path: '/app/renderscript/dist/lib/browser/adblock_hosts.txt' } }

I tried to run the 'update_adblock_hosts.sh' script from within the container, but didn't work(permissions).
Do you have any suggestions on what to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions