Skip to content

[Bug]: Dockerfile fails to build on podman/buildah due to unsupported flag #62849

Description

@irusensei

Bug Description

The optimizations made to Dockerfile are not engine-agnostic and break on Podman. Many people (especially on Linux desktops/servers, Fedora, RHEL, or rootless setups) prefer or are forced to use Podman.

Steps to Reproduce

Build Hermes-agent with podman build --file Dockerfile .

Expected Behavior

Container build should succeed.

Actual Behavior

Build fails with error

[3/3] STEP 36/56: COPY --link --chmod=a+rX,go-w . .
Error: building at STEP "COPY --link --chmod=a+rX,go-w . .": Error parsing chmod a+rX,go-w

Affected Component

Setup / Installation

Messaging Platform (if gateway-related)

N/A (CLI only)

Debug Report

N/A

Operating System

Nixos 26.05

Python Version

No response

Hermes Version

0.18.2

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

Commit 6382437 introduced https://github.com/NousResearch/hermes-agent/blob/main/Dockerfile#L202

This calls COPY --link --chmod=a+rX,go-w . . during build time. Podman (via Buildah) does not support --link.

Proposed Fix (optional)

Revert to previous COPY . . and chmod -R

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/dockerDocker image, Compose, packagingbugtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions