Recently I needed to containerize a Gatsby site and deploy it to a kubernetes cluster. The cluster had an ingress controller that mapped the /docs path to the Gatsby service. I just wanted to take a quick minute and document the process here. I utilized the pathPrefix in Gatsby so that the service would host the website at the /docs path.
const config = { gatsby: { pathPrefix: '/docs', ... I then created the following Dockerfile to build the image that would be deployed to kubernetes.
Tag: Gatsby
Alright, just completed migrating the blog to gatsby from wordpress. I’m looking forward to getting back into writing and posting on a regular basis. Stay tuned for more content….