microservices: Optimized Time Series Analytics Dockerfile#347
Merged
sathyendranv merged 2 commits intoopen-edge-platform:mainfrom Jun 16, 2025
Merged
Conversation
Optimized the Dockerfile to reduce the container image size from 1.56GB to 1.29GB Signed-off-by: B, Vinod K <vinod.k.b@intel.com>
sathyendranv
approved these changes
Jun 16, 2025
pooja-intel
approved these changes
Jun 16, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
Optimizes the Dockerfile for the time-series analytics service by consolidating layers, minimizing installed packages, and cleaning up caches to reduce image size and improve security.
- Consolidated and streamlined package installation and cleanup steps
- Switched to sparse checkout for Kapacitor Python plugin and removed unneeded files
- Added non-root user setup and improved healthcheck
Comments suppressed due to low confidence (2)
microservices/time-series-analytics/Dockerfile:44
- [nitpick] The PYTHONPATH includes '/tmp/py_package', but this directory is never created or populated in the Dockerfile; consider removing it or ensuring it's generated.
ENV PYTHONPATH="${PYTHONPATH}:/tmp/py_package:/app/kapacitor_python/" \
microservices/time-series-analytics/Dockerfile:16
- The 'apt-get purge -y --auto-remove' command is missing package names and will fail; specify which packages to purge or use 'apt-get autoremove -y' instead.
apt-get purge -y --auto-remove && \
sathyendranv
approved these changes
Jun 16, 2025
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.
Description
Optimized the Dockerfile to reduce the container image size from 1.56GB to 1.29GB
Any Newly Introduced Dependencies
None
How Has This Been Tested?
Yes, functionally verified the temperature results
Checklist: