the-photo-gallery
the-photo-gallery copied to clipboard
Cannot build docker image
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?