Skip to content

Optimize Dockerfile for python environment#348

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
GREENRAT-K405:fix/optimize-python-dockerfile
Feb 16, 2026
Merged

Optimize Dockerfile for python environment#348
pradeeban merged 1 commit intoControlCore-Project:devfrom
GREENRAT-K405:fix/optimize-python-dockerfile

Conversation

@GREENRAT-K405
Copy link
Copy Markdown
Contributor

@GREENRAT-K405 GREENRAT-K405 commented Feb 15, 2026

Changes I have made:

  • Replaced jupyter/base-notebook (about 2 G.B.) with the official python:3.10-slim image (about 120 mb).
  • Optimized layer Caching by changing the sequence, re-installation won't happen unnecessarily unless requirements.txt is modified.
  • used apt & pip cleanup to prevent the cache from being permanently backed into the image.
  • removed USER root declaration, as python slim images run as root by default, keeping the execution clean.

This fixes #334

@GREENRAT-K405
Copy link
Copy Markdown
Contributor Author

@pradeeban , this should optimize python environment dockerfile by a lot!

@pradeeban
Copy link
Copy Markdown
Member

We had plans to actively use Jupyter. Even FRI has an API for Jupyer, I believe. Anyway, we never really used it. Ok to proceed with your fix.

@pradeeban pradeeban merged commit 7eb46ef into ControlCore-Project:dev Feb 16, 2026
6 checks passed
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.

2 participants