docker: run a dummy git init to make cmdeploy tooling happy

This commit is contained in:
j4n
2026-02-17 14:57:54 +01:00
parent bafbaa1b81
commit bc19966801

View File

@@ -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/