Optimize Nut-server Docker configuration and security#1
Optimize Nut-server Docker configuration and security#1
Conversation
- Consolidate multiple RUN layers into a single instruction to reduce image size. - Implement a non-root user 'nut' (UID 1000) for improved security. - Refactor the fetching and patching logic using curl and tar. - Add a .dockerignore file to exclude unnecessary files from the build context. - Update the README.md to reflect the new non-root user and revised volume paths (/app/conf, /app/_NSPOUT). - Ensure build-time dependencies (gcc, -dev libraries) are removed after installation. - Patch requirements.txt to remove GUI dependencies and add markupsafe==2.0.1 for stability. Co-authored-by: eskwisit <47784621+eskwisit@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
I have optimized the Docker configuration and repository structure for the
nut-server. Key improvements include:nut, UID 1000) by default.RUNlayers have been consolidated, and build-time dependencies (likegccandlibssl-dev) are now purged in the same layer to minimize final image size.nutcodebase is now fetched usingcurland extracted directly into/app, avoiding temporary ZIP files.requirements.txtto keep the server-only image slim..dockerignorefile to prevent local development artifacts from bloating the build context.README.mdhas been updated with the new volume paths and notes on host directory permissions for the non-root user.PR created automatically by Jules for task 17297820138796096883 started by @eskwisit