Skip to content

Commit 617bc74

Browse files
committed
fix(docker): don't COPY the empty include/ dir in simplepool image
The Dockerfile.simplepool build stage did 'COPY include/ ./include/', but include/ is an empty directory. Git can't track empty dirs, so it's absent in a fresh checkout (CI), and buildx failed with '"/include": not found'. No header lives in include/ (all are under src/), and the Makefile's -Iinclude search path tolerates the directory's absence, so the copy is simply dropped.
1 parent 96893ea commit 617bc74

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

deploy/docker/Dockerfile.simplepool

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1414
&& rm -rf /var/lib/apt/lists/*
1515
WORKDIR /src
1616
COPY Makefile ./
17-
COPY include/ ./include/
17+
# NOTE: include/ is intentionally not copied — it's an empty directory (git
18+
# can't track empty dirs, so it's absent in a fresh checkout) and no header
19+
# lives there; all headers are under src/. The Makefile's -Iinclude search
20+
# path harmlessly tolerates its absence.
1821
COPY src/ ./src/
1922
# The Makefile does `include tests/*.mk` at the top level, so those files
2023
# must be present for make to parse — we only build the main binary target

0 commit comments

Comments
 (0)