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

feat(docker): enhance Dockerfile with caching and comments #614

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

obeone
Copy link

@obeone obeone commented Aug 19, 2024

This update introduces several improvements to the Dockerfile:

  • Add comments.
  • Set the base image to 3.12 to ensure sgpt will build, even if a new incompatible version of Python is released.
  • Add a .dockerignore file.
  • Use Dockerfile syntax version 1.5 for enhanced features.
  • Configure DEBIAN_FRONTEND to noninteractive to suppress prompts during package installation.
  • Disable automatic clean-up of the apt cache to retain downloaded packages.
  • Implement caching for apt and pip to improve build efficiency.
  • Reorder instructions to optimize layers (don't run apt-get if sources have been modified).

These changes aim to secure and optimize the build process.

…rations

This update introduces several improvements to the Dockerfile:

- Add comments
- Utilizes Dockerfile syntax version 1.5 for enhanced features.
- Configures DEBIAN_FRONTEND to noninteractive to suppress prompts during package installation.
- Disables automatic clean-up of apt cache to retain downloaded packages.
- Implements caching for apt and pip to improve build efficiency.

These changes aim to optimize the build process and provide better control over the container environment.
This is to ensure sgpt will build, even if a new incompatible python came out
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