Docker Build Documentation for Self Hosting or VPS #9256
wchorski
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm requesting documentation on how to build an optimized production app with Keystone (for use in a self hosted / VPS production server)
My Example Repo
Here in my repo I've been toying with
Dockerfile
s andcompose.yml
configurations. Specifically a combination ofImage Sizes
I'm very happy with the
Dockerfile.frontend.standalone
build of the Keystone in Next 14 usually sizing down to a 300MB image. I feel like the separate Keystone Admin UIDockerfile.backend
could be optimized a bit more as it runs around 1.2GB in image size, most of the bulk coming from the copied overnode_modules
folder.I'm hoping this open discussion helps us understand what is needed in a production image of the Keystone Admin UI app, and possibly utilizing Next's "standalone" output feature.
Dockerfile.frontend.standalone
This file is just the Next's example dockerfile with a few tweaks. Comes out to be a tiny ~300MB image size
Dockerfile.backend
Here is where I feel like a bit of soul searching is needed as this image size sees a lot of bloat from needing the
node_modules
folder for production.Beta Was this translation helpful? Give feedback.
All reactions