#slow startup, even after building
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
this is my api:
https://github.com/helpbuttons/helpbuttons/tree/main/api
i run it using docker-compose as you can see in the path parent of this one.
why is it so slow on the startup? appreciate some hints!
Does it start faster when you change CMD in your Dockerfile to this?
CMD [ "yarn", "start:prod" ]
Edit: Or better, as papooch mentions:
CMD ["node", "dist/main"]
node dist/main is the correct command