Commit ec54986
authored
Refactor Dockerfile to use setuptools build (#21)
fix(docker): Refactor Dockerfile to use standard setuptools build
This commit resolves a Docker build failure that occurred after migrating the project from Poetry to setuptools. The CI pipeline was failing because the Dockerfile still contained Poetry-specific commands.
The Dockerfile has been refactored to use a standard, multi-stage build process:
- The builder stage now uses `python -m build` to create a Python wheel.
- The runtime stage installs the application and its dependencies from the wheel generated in the builder stage.
Additionally, the `build` package version has been pinned to `1.3.0` in the Dockerfile to satisfy a `hadolint` pre-commit hook.1 parent 0f2ef04 commit ec54986
1 file changed
Lines changed: 10 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | | - | |
34 | | - | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 34 | + | |
| 35 | + | |
0 commit comments