Skip to content

Commit a7bcce7

Browse files
Refactor Dockerfile to use setuptools build
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.
1 parent 6a7a42d commit a7bcce7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM python:3.12-slim AS builder
33

44
# Install build dependencies
5-
RUN pip install --no-cache-dir build
5+
RUN pip install --no-cache-dir build==1.3.0
66

77
# Set the working directory
88
WORKDIR /app

0 commit comments

Comments
 (0)