Skip to content

Refactor Dockerfile to use setuptools build#21

Merged
gowthamrao merged 2 commits into
developfrom
fix-docker-build-error
Oct 26, 2025
Merged

Refactor Dockerfile to use setuptools build#21
gowthamrao merged 2 commits into
developfrom
fix-docker-build-error

Conversation

@gowthamrao
Copy link
Copy Markdown
Contributor

The Docker build was failing in the CI/CD pipeline because it was attempting to use Poetry to export dependencies, but the project is configured to use setuptools.

This commit refactors the Dockerfile to use a standard, multi-stage build process with setuptools. The builder stage now creates a Python wheel, which is then installed in the runtime stage. This resolves the build error and correctly installs the application and its dependencies.

The Docker build was failing in the CI/CD pipeline because it was attempting to use Poetry to export dependencies, but the project is configured to use setuptools.

This commit refactors the Dockerfile to use a standard, multi-stage build process with setuptools. The builder stage now creates a Python wheel, which is then installed in the runtime stage. This resolves the build error and correctly installs the application and its dependencies.
The Docker build was failing in the CI/CD pipeline because it was attempting to use Poetry to export dependencies, but the project is configured to use setuptools.

This commit refactors the Dockerfile to use a standard, multi-stage build process with setuptools. The builder stage now creates a Python wheel, which is then installed in the runtime stage. This resolves the build error and correctly installs the application and its dependencies.

Additionally, the `build` package version has been pinned to `1.3.0` to satisfy the `hadolint` pre-commit hook.
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gowthamrao gowthamrao merged commit ec54986 into develop Oct 26, 2025
13 checks passed
@gowthamrao gowthamrao deleted the fix-docker-build-error branch October 26, 2025 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant