Skip to content

Docker build fails on Windows due to CRLF line endings in shell files #2508

Description

@DDRMin

Docker builds fail on Windows environments with errors like /bin/sh: ./build.sh: not found, even though the file exists. This happens because Git converts line endings to CRLF (\r\n), which breaks execution of shell scripts (*.sh), Dockerfile, and Makefile inside Linux-based containers that expect LF (\n).

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

      Issue actions