Skip to content

Build fails: wget to download eng.traineddata from GitHub fails. #33

Description

@T3chfalcon

Hi team,

I’m trying to build and run the project using:

docker compose -f docker-compose-openai.yaml up

but the build consistently fails at this step in docker/chat-copilot/webapi/Dockerfile:

RUN cd webapi &&
dotnet restore --use-current-runtime &&
apt-get update && apt-get install -y wget &&
wget -P data https://raw.githubusercontent.com/tesseract-ocr/tessdata/main/eng.traineddata &&
dotnet publish --use-current-runtime --self-contained false --no-restore -o /app

--2025-09-05 xx:xx:xx-- https://raw.githubusercontent.com/tesseract-ocr/tessdata/main/eng.traineddata
Resolving raw.githubusercontent.com...
Connecting to raw.githubusercontent.com||:443... connected.
Unable to establish SSL connection.
This causes the container build to fail and prevents me from running the project.

Steps to reproduce

Fresh clone of the repo

Run docker compose -f docker-compose-openai.yaml up

Build fails during the wget of eng.traineddata

Expected behavior

The project should build successfully without requiring a live download of the eng.traineddata file.

Suggested fix

Instead of relying on wget during build (which fails if GitHub is unreachable or SSL handshake fails), include the eng.traineddata file in the repo (or fetch it via dependency management) and update the Dockerfile to:

COPY src/chat-copilot/webapi/data/eng.traineddata data/eng.traineddata

This would make the build deterministic and not dependent on GitHub availability during docker build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions