strapi-community / strapi-tool-dockerize

Easy add support for docker to your strapi project
MIT License
543 stars 35 forks source link

Docker fails on last step on docker-compose up: ENOENT: no such file or directory, scandir '/opt/app/src/admin' #35

Closed exotexot closed 1 year ago

exotexot commented 2 years ago

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

Screenshot 2022-09-28 at 10 50 16

exotexot commented 2 years ago

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.

Eventyret commented 2 years ago

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 ?