Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code Dockerfile #16443

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

teenager-ETH
Copy link

Pull Request Title: Fix code Dockerfile

Summary

This pull request addresses a minor fix in the Dockerfile for Prometheus automation. It enhances the cleanup process after package installation to reduce the image size and improve security.

Changes

  • Updated the RUN command to include apt-get clean and removal of /var/lib/apt/lists/*.
  • Added additional cleanup steps to optimize the Docker image.

Modified Files

  • automation/services/prometheus/Dockerfile

Diff Summary

-    dumb-init
+    dumb-init && \
+    apt-get clean && rm -rf /var/lib/apt/lists/*

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.

1 participant