Closed yfiua closed 3 months ago
It looks like it's a bug related to Deno but apparently it's fixed in the last versions, see https://github.com/denoland/deploy_feedback/issues/612. I'm wondering what's happening since the Docker image includes the last version of Deno (I guess).
I tracked this down as I'm struggling with this for hours now. It won't be updated for a while as
deno
comes from alpine registry: https://github.com/Zenika/alpine-chrome/blob/master/with-deno/Dockerfile#L4deno
build: https://pkgs.alpinelinux.org/packages?name=deno&branch=v3.19&repo=&arch=&maintainer=And god knows when it's going to be updated.
Thank you for the additional info, I guess the executable files from the Releases page (see https://github.com/gildas-lormeau/single-file-cli/releases) should not suffer from this issue though.
Release works fine.
Thank you for the additional info, I guess the executable files from the Releases page (see https://github.com/gildas-lormeau/single-file-cli/releases) should not suffer from this issue though.
But in this case, you need to manually point to the most recent release.
Alternatively, I chose a different base image from deno, installed chromium and it works fine (there is an alpine version too): https://github.com/rutkai/single-file-web/blob/master/Dockerfile
I made the code compatible with Node.js and published a new version on Docker Hub based on Node.js instead of Deno.
Thanks. May I know what's the long term plan here? Staying on deno (and switching back to it once this bug is fixed in the upstream image) or keeping both on the long run?
The long term plan should be to stay on deno once the bug is fixed. However, I will do my best to make the code compatible with Node.js though.
Hi,
I tried to run single-file-cli. Both from dockerhub and git repo build I got the same error:
docker run singlefile "https://www.wikipedia.org"
error: Import 'https://registry-staging.deno.com/@std/path/meta.json' failed: error sending request for url (https://registry-staging.deno.com/@std/path/meta.json): error trying to connect: dns error: failed to lookup address information: Name does not resolve at file:///usr/src/app/single-file-cli-master/single-file-cli-api.js:26:25
It seems it cannot load the json file from deno as the link is broken.
Do you have any idea? Thanks!