Both, docker and docker-compose are failing to start containers, build is failing with same error in both cases.
> [python-builder 6/6] RUN pip install --user --no-cache-dir -e .:
2.344 Obtaining file:///build
2.347 Installing build dependencies: started
3.731 Installing build dependencies: finished with status 'done'
3.731 Checking if build backend supports build_editable: started
3.761 Checking if build backend supports build_editable: finished with status 'done'
3.762 Getting requirements to build editable: started
3.827 Getting requirements to build editable: finished with status 'error'
3.833 error: subprocess-exited-with-error
3.833
3.833 × Getting requirements to build editable did not run successfully.
3.833 │ exit code: 1
3.833 ╰─> [20 lines of output]
3.833 Traceback (most recent call last):
3.833 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
3.833 main()
3.833 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
3.833 json_out['return_val'] = hook(**hook_input['kwargs'])
3.833 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in get_requires_for_build_editable
3.833 return hook(config_settings)
3.833 File "/tmp/pip-build-env-l1abk715/overlay/lib/python3.10/site-packages/hatchling/build.py", line 69, in get_requires_for_build_editable
3.833 return [*builder.config.dependencies, EDITABLES_REQUIREMENT]
3.833 File "/usr/local/lib/python3.10/functools.py", line 981, in __get__
3.833 val = self.func(instance)
3.833 File "/tmp/pip-build-env-l1abk715/overlay/lib/python3.10/site-packages/hatchling/builders/config.py", line 579, in dependencies
3.833 for dependency in self.dynamic_dependencies:
3.833 File "/usr/local/lib/python3.10/functools.py", line 981, in __get__
3.833 val = self.func(instance)
3.833 File "/tmp/pip-build-env-l1abk715/overlay/lib/python3.10/site-packages/hatchling/builders/config.py", line 595, in dynamic_dependencies
3.833 build_hook = build_hook_cls(
3.833 File "/tmp/pip-build-env-l1abk715/overlay/lib/python3.10/site-packages/hatchling/builders/hooks/custom.py", line 33, in __new__
3.833 raise OSError(message)
3.833 OSError: Build script does not exist: hatch_build.py
3.833 [end of output]
3.833
3.833 note: This error originates from a subprocess, and is likely not a problem with pip.
3.834 error: subprocess-exited-with-error
3.834
3.834 × Getting requirements to build editable did not run successfully.
3.834 │ exit code: 1
3.834 ╰─> See above for output.
3.834
3.834 note: This error originates from a subprocess, and is likely not a problem with pip.
3.956
3.956 [notice] A new release of pip is available: 23.0.1 -> 26.0.1
3.956 [notice] To update, run: pip install --upgrade pip
------
Dockerfile:38
--------------------
36 |
37 | # Install Python dependencies
38 | >>> RUN pip install --user --no-cache-dir -e .
39 |
40 | # Stage 3: Runtime
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c pip install --user --no-cache-dir -e ." did not complete successfully: exit code: 1
Description
Both, docker and docker-compose are failing to start containers, build is failing with same error in both cases.
Reproduce
git clone https://github.com/datalayer/mcp-compose.git
cd mcp_compose
docker build -t mcp-compose:prod .
docker up -d
Expected behavior
Build and start docker
Error