[bug] 5 issues occuring when building Docker images for Python+uv monorepos
bug
**Describe the bug**
While working on setting up a sample repo of a monorepo with Python+uv projects for #2489, I encountered some issues that I documented in https://github.com/lucsorel/moon-python-monorepo-docker-issues (forgive me for the long read), in which I also provide some workarounds that do not look like long-term solutions or good practices to me.
For the sake of concision, I do not detail the issues here, but here are their titles:
1. `moon docker setup` requires the source code of the projects, but `moon docker scaffold` does not yield it
2. `moon docker setup` requires the `README.md` files of the projects, but `moon docker scaffold` does not yield them
3. `moon r --no-actions --quiet` still implies actions and logs in a fully-built Docker image
4. `moon docker setup` requires the source code and `README.md` files of dependent projects, but `moon docker scaffold` does not yield them
5. Docker images unnecessarily contain the virtual environments of dependent projects
**Steps to reproduce and expected behaviors**
See https://github.com/lucsorel/moon-python-monorepo-docker-issues/blob/main/README.md
**Screenshots**
Not applicable.
**Environment**
```
System:
OS: Linux 6.8 Ubuntu 24.04.4 LTS 24.04.4 LTS (Noble Numbat)
CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1355U
Memory: 6.32 GB / 15.33 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 22.19.0 - /home/lsorel-giffo/.proto/tools/node/22.19.0/bin/node
npm: 10.9.3 - /home/lsorel-giffo/.proto/tools/node/22.19.0/bin/npm
Managers:
Apt: 2.8.3 - /usr/bin/apt
Cargo: 1.95.0 - /home/lsorel-giffo/.cargo/bin/cargo
Utilities:
7z: 23.01 - /usr/bin/7z
Make: 4.3 - /usr/bin/make
GCC: 13.3.0 - /usr/bin/gcc
Git: 2.43.0 - /usr/bin/git
FFmpeg: 6.1.1 - /usr/bin/ffmpeg
Curl: 8.5.0 - /usr/bin/curl
OpenSSL: 3.0.13 - /usr/bin/openssl
Virtualization:
Docker: 28.4.0 - /usr/bin/docker
IDEs:
Nano: 7.2 - /usr/bin/nano
VSCode: 1.118.1 - /usr/bin/code
Languages:
Bash: 5.2.21 - /usr/bin/bash
Perl: 5.38.2 - /usr/bin/perl
Python: 3.8.10 - /home/lsorel-giffo/.proto/shims/python
Python3: 3.12.3 - /usr/bin/python3
Rust: 1.95.0 - /home/lsorel-giffo/.cargo/bin/rustc
Browsers:
Chromium: 147.0.7727.116
Firefox: 150.0.1
Firefox Developer Edition: 150.0.1
```
8 条评论