-
Hello, have some problem running vitepress on kubernetes. My dockerfile looks like this:
I have created a simple helm chart to deploy vitepress on kubernetes. In ArgoCD all resources are up running. The pod not.
I don't understand why npm is not found even though I install it explicitly. I've been looking for solutions for a while, but unfortunately I haven't found anything yet. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Not sure, gpt solution:
Alternatively, ditch npm, just run |
Beta Was this translation helpful? Give feedback.
-
It doesn't work.
With dot or without, it doesn't makes matter. You could also use nginx as a web server and display the static pages but I think it looks better to use vitepress or npm. |
Beta Was this translation helpful? Give feedback.
-
You mean this here: Nginx I was hoping there was another way. Thanks for any tips though. |
Beta Was this translation helpful? Give feedback.
-
Hi, now its working on Kubernetes ( with nginx ). 😄
default.conf is from here Kubernetes resources are up and running:
Logs from pod:
The trick here is to set the command for starting nginx correctly. Passing CMD as a shell argument, however, works very well! 👍 |
Beta Was this translation helpful? Give feedback.
Hi,
now its working on Kubernetes ( with nginx ). 😄
I spent a while on this until it worked properly.
This Dockerfile do the job: