Fix Docker build failure for psutil package, optimize Dockerfile#10
Open
TrueBankai416 wants to merge 7 commits intobryangerlach:masterfrom
Open
Fix Docker build failure for psutil package, optimize Dockerfile#10TrueBankai416 wants to merge 7 commits intobryangerlach:masterfrom
TrueBankai416 wants to merge 7 commits intobryangerlach:masterfrom
Conversation
Added linux-headers to Alpine package installation to fix psutil compilation error. This package is required for psutil to build its C extensions on Alpine Linux. Co-authored-by: TrueBankai416 <97103466+TrueBankai416@users.noreply.github.com>
- Updated base image from python:3.10.3-alpine to python:3.10-alpine for better maintenance and automatic security updates - Used virtual build dependencies that are removed after pip install to significantly reduce final image size - Added pillow dependencies (zlib-dev, jpeg-dev, freetype-dev) to prevent potential build failures - Consolidated RUN commands to reduce image layers Co-authored-by: TrueBankai416 <97103466+TrueBankai416@users.noreply.github.com>
Separated runtime libraries from build dependencies to prevent runtime errors. Runtime libs (zlib, jpeg, freetype, mariadb-connector-c) are now kept in the final image, while build-time dependencies (compilers and -dev packages) are removed after pip install. This ensures Pillow and database functionality work correctly at runtime while still maintaining a smaller image size. Co-authored-by: TrueBankai416 <97103466+TrueBankai416@users.noreply.github.com>
- Added libpng runtime and libpng-dev build dependencies for full Pillow PNG support (needed for icon/logo uploads) - Improved build caching by copying requirements.txt first, then installing dependencies, then copying the rest of the app - Changed ADD to COPY (Docker best practice) - Better organized RUN commands with clearer structure and comments Co-authored-by: TrueBankai416 <97103466+TrueBankai416@users.noreply.github.com>
Fix Docker build failure for psutil package
Changed extras['rdgen'] from 'false' to 'true' in the generator view. This enables the rdgen workflow to: - Create GitHub releases with built clients - Call back to save files to clients/custom/ - Update build status properly Fixes issue where generated clients weren't appearing in the Client Downloads tab. Co-authored-by: TrueBankai416 <97103466+TrueBankai416@users.noreply.github.com>
Enable rdgen integration for client downloads and GitHub releases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
linux-headersto the Alpine Linux system dependencies in the Dockerfile. This package is required forpsutilto compile its C extensions during the Docker build process.Changes
linux-headersto theapk addcommand in the DockerfileProblem
The Docker build was failing with:
Solution
psutilrequires Linux kernel headers to compile on Alpine Linux. Addinglinux-headersto the system dependencies resolves the build failure.