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

Enhance Dockerfile Structure and Documentation for the IHR Python Base Image. #10

Open
abdulrehmanjaved-1 opened this issue Jan 4, 2024 · 0 comments

Comments

@abdulrehmanjaved-1
Copy link

Is your feature request related to a problem? Please describe.
The current Dockerfile for the IHR Python Base Image is well-structured, but there are opportunities to enhance its readability, maintainability, and alignment with Docker best practices.

Describe the solution you'd like
Propose the following improvements to the Dockerfile:
->Group ARG instructions at the beginning, organized by relevance.
->Combine multiple RUN instructions into a single instruction for reduced layering.
->Align with common label conventions for better readability.
->Add comments to document the purpose and usage of environment variables.
->Provide comments to explain the purpose of the USER instruction.
->Evaluate the use of multi-stage builds for minimizing the final image size.

Describe alternatives you've considered
Alternative solutions were considered during the proposal, and the selected improvements aim to balance readability, maintainability, and adherence to Docker best practices.

Additional context
These improvements will contribute to a more streamlined and efficient Dockerfile for the IHR Python Base Image, ensuring that it aligns with industry standards and facilitates future maintenance.

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

No branches or pull requests

1 participant