dockerization to deploy on prod not working
Unanswered
Asian black bear posted this in #help-forum
Asian black bearOP
I'm following the docker deploy of my next typescript app that is here https://nextjs.org/docs/app/building-your-application/deploying but I can't create the image
2 Replies
Golden-winged Warbler
We had to fiddle with a few things to get a good, containerized, production build.
This is roughly a multi-stage dockerfile, but written with Dagger.io
https://github.com/hofstadter-io/hof/blob/docs/updates/next/ci/dagger.mts#L126
We also deploy nginx with it
This is roughly a multi-stage dockerfile, but written with Dagger.io
https://github.com/hofstadter-io/hof/blob/docs/updates/next/ci/dagger.mts#L126
We also deploy nginx with it
Golden-winged Warbler
I found a better multi-stage dockerfile elsewhere on the internet that I based this on (some blog I cannot find a.t.m.)