404 page not found
Hi all, i recently deploy to app platform digital ocean and found page is not found, however in local(without docker) everything is fine. and after that, i just want to know how to run it on my local docker, and again find my app page is not found. everything looks like this
4 Replies
here's my dockerfile
here's my package json
this is what I have in my Dockerfile to run my project:
ENTRYPOINT [ "node", ".output/server/index.mjs" ]
also, you should probably setup a builder image so you don't have to copy over your entire project and node_modules into your image... you only need the build output.
Example: https://sachithsiriwardana.medium.com/dockerizing-nodejs-application-with-multi-stage-build-e30477ca572