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

chore: Reduce size of docker image #444

Merged
merged 3 commits into from
Nov 8, 2023
Merged

chore: Reduce size of docker image #444

merged 3 commits into from
Nov 8, 2023

Conversation

titom73
Copy link
Collaborator

@titom73 titom73 commented Nov 7, 2023

Description

  • Update base image from -slim to -alpine
  • Implement an intermediate builder to reduce size of docker image
  • Implement a .dockerignore file to not copy non-necessary content
ghcr.io/arista-netdevops-community/anta   dev-py-alpine   174234061901   22 seconds ago   97.9MB
ghcr.io/arista-netdevops-community/anta   dev             690d2d1cf3de   19 hours ago     223MB
ghcr.io/arista-netdevops-community/anta   latest          a8e3954c544b   4 weeks ago      197MB

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)
  • I have made corresponding changes to the documentation: N/A
  • I have added tests that prove my fix is effective or that my feature works: N/A
  • New and existing unit tests pass locally with my changes (tox -e testenv)

@titom73 titom73 requested review from mtache and gmuloc November 7, 2023 12:14
@titom73 titom73 added the refactor Code refactoring label Nov 7, 2023
@titom73 titom73 marked this pull request as ready for review November 7, 2023 13:48
Copy link
Collaborator

@mtache mtache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐳

@mtache mtache merged commit b374e7b into main Nov 8, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code refactoring rn: chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants