strapi-tool-dockerize icon indicating copy to clipboard operation
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'

Open exotexot opened this issue 3 years ago • 2 comments

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 avatar Sep 28 '22 08:09 exotexot

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.

exotexot avatar Sep 28 '22 09:09 exotexot

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 ?

Eventyret avatar Sep 29 '22 12:09 Eventyret