2351b489fe
- Generate frontend/package-lock.json (required by npm ci) - Add network: host to BuildKit build stages to fix DNS in pip installs - Switch pyproject.toml build backend to setuptools.build_meta (stable) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.3 KiB
1.3 KiB
2026-04-12 — Fix Docker build issues
Timestamp: 2026-04-12T13:40:00
Summary
Resolved three Docker build failures preventing the dev stack from starting. All three containers (db, backend, frontend) now build and run successfully.
Issues Fixed
- No
package-lock.json—npm cirequires a lockfile. Generatedfrontend/package-lock.jsoninside a throwawaynode:20-alpinecontainer (no host installation). - BuildKit DNS failure — Docker BuildKit build steps had no DNS resolution, causing pip to fail on PyPI connections. Fixed by adding
network: hostto bothbackendandfrontendbuild configs indocker-compose.yml. setuptools.backends.legacyunavailable — Thepyproject.tomlreferenced a setuptools 68+ only backend path. Changed to the stablesetuptools.build_metabackend (available since setuptools 40).
Files Modified
docker-compose.yml— addednetwork: hosttobackendandfrontendbuild sectionsbackend/pyproject.toml— changed build backend fromsetuptools.backends.legacy:buildtosetuptools.build_meta; bumped setuptools requirement to>=45backend/Dockerfile— reverted intermediate--no-build-isolationworkaround (no longer needed)
Files Added
frontend/package-lock.json— npm lockfile required bynpm ciin the frontend Dockerfile