pinokiocomputer / pinokio

AI Browser
https://pinokio.computer
MIT License
3.37k stars 275 forks source link

[Feature Request] Docker Image? #123

Open josephrocca opened 7 months ago

josephrocca commented 7 months ago

It'd be awesome if there were a simple docker command to get Pinokio up and running, assuming that's actually possible. If Pinokio ships its own browser (i.e. can't access it via an existing browser that lives outside the container), then I'm guessing that it's not really possible to put it all inside a docker image.

Then again, I see this in the FAQ:

Q: "How can i run apps on my PC and access from another laptop in the same network?" A: Now this features is not only possible, but is exposed as an API. You can now run your StableDiffusion server on your 4090 and run them from your macbook air.

So I am a little hopeful!

0xTidalBore commented 7 months ago

I think it would be theoretically possible via reverse SSH to access ur local server link from the internet, eg: Remote.moe I actually need to test that so i will let u know if things workout as expected!

0xTidalBore commented 7 months ago

Well after a first look, pinokio offers a linux based .deb installation file, and it runs locally on port 42000, which mean u should be able to access it from the internet if u setup a port forwarding rule on ur machine.

0xTidalBore commented 7 months ago

All right so here is one possible very convenient solution:

  1. forward ports 42000 & 7860 on ur host or whatever cloud provider u renting resources from.
  2. Grab a docker image that supports desktop ghcr.io/ai-dock/linux-desktop:latest wroks just fine.
  3. Install Pinokio based on ur linux distro.
  4. Once it runs use ur remoteMachineIP:ForwardedPort to connect to it from wherever is ur local browser