Skip to content

Error During Docker Build: Folder standalone Not Found #3

Open
@thekailanihouse

Description

@thekailanihouse

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @thekailanihouse

        Issue actions

          Error During Docker Build: Folder standalone Not Found · Issue #3 · refinedev/dockerfiles