Skip to content

The dokcer build is failing as it cannot find file altinity-mcp #5

Closed

Description

@Shyamsundar45

The repo doesn't contain a file named altinity-mcp, and the Docker has a COPY step and an entrypoint step which uses it, so docker build fails.

Attached logs below

`docker build -t altinity-mcp .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon    276kB
Step 1/6 : FROM alpine:latest
 ---> 9234e8fb04c4
Step 2/6 : RUN apk --no-cache add ca-certificates curl
 ---> Using cache
 ---> 2919c2a5bed9
Step 3/6 : WORKDIR /app
 ---> Using cache
 ---> 8e38b96265ae
Step 4/6 : COPY altinity-mcp .
COPY failed: file not found in build context or excluded by .dockerignore: stat altinity-mcp: file does not exist`

Activity

  1. Slach commented on Jul 29, 2025

    @Slach
    Collaborator

    you need to build altnity-mcp binary separately

    look details https://github.com/Altinity/altinity-mcp/blob/main/.github/workflows/build-altinity-mcp.yml#L67-L92

    in the future, maybe we will add to Dockerfile separate builder stage for indepdendent building

    you can just use docker pull ghcr.io/altinity/altinity-mcp:v1.0.0

  2. Shyamsundar45 commented on Jul 29, 2025

    @Shyamsundar45
    Author

    Thank you, I ended up doing the same and pulled the image directly. I understand this is still an evolving repo. Appreciate the quick response! :)

  3. EvilFreelancer commented on Sep 16, 2025

    @EvilFreelancer

    Need to add to the Dockerfile following line:

    RUN apk --no-cache add libc6-compat
  4. Slach commented on Sep 16, 2025

    @Slach
    Collaborator

    @EvilFreelancer could you explain
    which is your commands sequences?

    feel free to create pull request with explanation

  5. EvilFreelancer commented on Sep 16, 2025

    @EvilFreelancer

    Hi! It's more about execution stage, after building an image I can't start a container, due to /bin/altinity-mcp binary not found error, I've deep dived into a container (in sleep inf mode) and with help of ldd /bin/altinity-mcp found than libc6 library missed.

  6. EvilFreelancer commented on Sep 16, 2025

    @EvilFreelancer

    I can create a PR, it's just a one line fix related to alpine based images :)

    By the way, I recommend to try a golang docker image as foundation, it's a little bit better than keeping artifacts directly in repo.

  7. Slach commented on Sep 16, 2025

    @Slach
    Collaborator

    @EvilFreelancer
    how exactly you build altinity-mcp ?

    did you use CGO_ENABLED=0?

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

      Issue actions