Any document or tips to deploy convex production environment to Google Cloud Run or any other docker
Trying to use Convex and Python Fastapi together in docker container, here is the Dockerfile.
And this python program work with Convex in Dev environment very well.
6 Replies
And I believe python part is not important, key point is if we don't want to deploy to Vercel or Netflify, could we deploy convex production on docker environement? it should work because it is kinda node.js program (?)
:convex:
This seems reasonable, yeah! You don't really need to CLI deploy to take place in the docker container, since the only point of that is to deploy the (hosted) Convex deployment.
So any suggestion or reference in this good direction? I think once this is done or as example, a lot of good fella will use it. 😉
The first test image size is kind of big, any information of what EXACTLY node version npx convex deploy need and if there is any other packages I could remove, will be great.
There doesn't need to be anything in this docker file specific to Convex: your Python program just needs the production CONVEX_URL
I like this design. Really flexible!
generally I'd run that
npx convex deploy -y
on your own machine instead
but if you want to use docker for it then just having node, convex, and your convex functions dependencies installed are all that's required
If you care about image size I'd use two different containers for the two tasks