strapi-tool-dockerize
strapi-tool-dockerize copied to clipboard
Docker fails on last step on docker-compose up: ENOENT: no such file or directory, scandir '/opt/app/src/admin'
Hello.
I'm using the latest Strap 4.3.9 and dockerize. After loading the image and running docker-compose up it fails on the very last step of strapi build.
Building your admin UI with development configuration... [Error: ENOENT: no such file or directory, scandir '/opt/app/src/admin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/opt/app/src/admin' } The command '/bin/sh -c npm run build' returned a non-zero code: 1

I'm using the default config that dockerize generates. No changes have been made.
I'm on macOS 12.6 Docker is running on ubuntu.
So on your ubuntu make sure you have build tools installed etc. How are you doing this ? Are you building it on your mac or are you building it on your Ubuntu Setup?
How is your strapi setup done ?