[WIP] Fix CI failure in PR #91 due to Dockerfile issue#92
Merged
jancwe merged 2 commits intocopilot/optimize-dockerfile-layer-orderfrom Mar 21, 2026
Merged
Conversation
…ion.py Co-authored-by: jancwe <83763512+jancwe@users.noreply.github.com> Agent-Logs-Url: https://github.com/jancwe/formflow/sessions/f91a6add-2b22-4f9f-9115-50c8b6b96c6f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
copilot/optimize-dockerfile-layer-order(PR Optimize Dockerfile: squash 5 layers #91):pdf_templates,templates,static) to the dummy-package setup in step 2_version.pydummy file needed by__init__.pyimportOriginal prompt
CI-Fehler in PR #91 beheben
PR #91 (Branch:
copilot/optimize-dockerfile-layer-order) hat das Dockerfile optimiert, aber die CI schlägt fehl – der App-Container startet nicht innerhalb des Zeitlimits.Aktuelles (fehlerhaftes) Dockerfile auf dem Branch
Wahrscheinliche Ursachen des Start-Fehlers
Dummy-Package-Trick fehlen Package-Data-Verzeichnisse: Die
pyproject.tomldeklariertpackage-datafürpdf_templates/*.html,templates/*.htmlundstatic/**/*. Wenn setuptools diese Verzeichnisse beim Dummy-Build nicht findet, kann die Installation fehlschlagen oder unvollständig sein. Der Dummy-__init__.pyallein reicht nicht – es müssen auch leere Verzeichnisse für die package-data-Globs existieren.rm -rf src/formflowam Ende von Schritt 2 entfernt das gesamte Verzeichnis, aberpip install --no-deps .in Schritt 3 muss das Package erneut installieren. Da--no-depsverwendet wird, werden Dependencies nicht erneut installiert (das ist korrekt), aber das Package selbst muss korrekt gebaut werden können – dafür braucht es die package-data-Verzeichnisse.Fix
Der Dummy-Package-Trick muss angepasst werden, damit setuptools das Package auch mit den
package-data-Globs bauen kann. Die einfachste Lösung:Wichtige Änderungen im Fix
In Schritt 2:
mkdir -p src/formflow/pdf_templates src/formflow/templates src/formflow/static– erstellt die leeren Verzeichnisse, die setuptools für diepackage-data-Globs inpyproject.tomlerwartetecho '__version__ = "0.1.0"' > src/formflow/_version.py– erstellt auch die_version.py, die von__init__.pyimportiert wird (de...This pull request was created from Copilot chat.
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.