From bc19966801cc1902fa7f5387ed52a31d8e82f226 Mon Sep 17 00:00:00 2001 From: j4n Date: Tue, 17 Feb 2026 14:57:54 +0100 Subject: [PATCH] docker: run a dummy git init to make cmdeploy tooling happy --- docker/chatmail_relay.dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/chatmail_relay.dockerfile b/docker/chatmail_relay.dockerfile index 73a3c09a..bdbcf65c 100644 --- a/docker/chatmail_relay.dockerfile +++ b/docker/chatmail_relay.dockerfile @@ -47,7 +47,10 @@ WORKDIR /opt/chatmail RUN printf '[params]\nmail_domain = build.local\n' > /tmp/chatmail.ini -RUN python3 -m venv /opt/cmdeploy && \ +# Dummy git repo init: .git/ is excluded from the build context (.dockerignore) +# but setuptools calls `git ls-files` when building the sdist. +RUN git init && \ + python3 -m venv /opt/cmdeploy && \ /opt/cmdeploy/bin/pip install --no-cache-dir \ -e chatmaild/ -e cmdeploy/