reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Create Pynecone Docker Image

Open picklelo opened this issue 3 years ago β€’ 5 comments

picklelo avatar Jan 13 '23 20:01 picklelo

If we use docker compose to deploy, maybe we can use Caddy and reverse proxy port 8080 /event to 443 /event, then we can only export one port 443 to public.

FHU-yezi avatar Jan 14 '23 00:01 FHU-yezi

Something related, a command line to export the static web app on one site and to package the serverside separately would be great too.

matt-grain avatar Jan 14 '23 00:01 matt-grain

Something related, a command line to export the static web app on one site and to package the serverside separately would be great too.

Yes, we can get better performance by use Caddy to server static files and FastAPI to serve backend, with Caddy as a reverse proxy.

I will try to build a small demo a few hours later.

FHU-yezi avatar Jan 14 '23 01:01 FHU-yezi

i did a docker image of pynecone. it was done for my mac. its possibel to dev with it if you mount a volume on it and then bash into container and run pc init/run in the mounted directory.

there is no dockerfile as im learning docker but i aimed to make it as small as possible and include all the dependencies

it was purely for learning and investigating, i dont recommend it for real development as the real time reload feature makes very high CPU demands since i guess it has to cross layers

https://hub.docker.com/r/holocloud/pynecone

hololeo avatar Jan 14 '23 22:01 hololeo

Is this issue still open for contribution? If yes, I would like to contribute to this issue

SaarthakMaini avatar Jan 24 '23 15:01 SaarthakMaini