Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build docker image #6

Open
kanwarplaha opened this issue May 18, 2024 · 0 comments
Open

Cannot build docker image #6

kanwarplaha opened this issue May 18, 2024 · 0 comments

Comments

@kanwarplaha
Copy link

While doing docker-compose build, I get the following error:

12.88 warn:    ┏ Error loading cache file +2ms
12.88 warn:    ┃ [1] {
12.88 warn:    ┃ [2]   error: [Error: ENOENT: no such file or directory, open 'storage/photos.json'] {
12.88 warn:    ┃ [3]     errno: -2,
12.88 warn:    ┃ [4]     code: 'ENOENT',
12.88 warn:    ┃ [5]     syscall: 'open',
12.88 warn:    ┃ [6]     path: 'storage/photos.json'
12.88 warn:    ┃ [7]   }
12.88 warn:    ┗ [8] }
12.88 info:    ┏ Skipping cache file. +5ms
12.88 info:    ┗ [1] { cacheFileExists: false, processingOptionsChanged: true, regenerate: false }
12.88 info:    ▪ Starting file processing... (This can take awhile) +0ms
12.88 error:   ┏ Error reading the photos directory +1ms
12.88 error:   ┗ [1] { photosDir: './public/photos', directory: undefined, fullPath: './public/photos' }
12.88 
12.88 Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
12.88 Error: ENOENT: no such file or directory, scandir './public/photos'
12.88 info  - Generating static pages (3/3)

I have replaced all BASE_DIR with my actual base directory where the photos are. Where is "./public/photos" coming from?

Can I have some clarity please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant