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

Error During Docker Build: Folder standalone Not Found #3

Open
thekailanihouse opened this issue Aug 29, 2024 · 0 comments
Open

Error During Docker Build: Folder standalone Not Found #3

thekailanihouse opened this issue Aug 29, 2024 · 0 comments

Comments

@thekailanihouse
Copy link

When I run

docker compose up -d --build

I encounter an error at the line:

COPY --from=builder --chown=refine:nodejs /app/refine/.next/standalone ./

The folder .next/standalone does not exist.

To fix this, I made the following change in the next.config.mjs file:

const nextConfig = {
    output: 'standalone'
};

Perhaps you could provide an update to the file or check if there are additional steps needed to ensure the standalone folder is correctly generated during the build process.

and dont forget to create public folder before build

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