Solved: Nuxt.js App takes too long to start inside Docker - too slow
I have spend lots of time to investigate what the problem is and I found it!
Take a look inside your docker-compose.yml
and double check, that you are not propagating .git
folder inside the docker container!
Now your app will be faster than before
node:
image: node:18-alpine
build: .
volumes:
- ./:/app
- vendor-data:/app/node_modules
#- /app/.nuxt
- /app/.git
- /app/.output
- /app/.pnpm-store
env_file: .env
working_dir: /app