-
-
Notifications
You must be signed in to change notification settings - Fork 155
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: update Dockerfile to reduce the image size #327
base: master
Are you sure you want to change the base?
Conversation
It was deleted by purpose: |
Sorry I did not see that. |
There was a problem with one package installation (can't remember which one - zeroconf?) as a dependency for platformio. That package was installed in wrong version when |
That is an interesting behavior, I was not aware that |
I'm not sure where the problem is (maybe with defined dependencies for platformio?), but I've made an observation that starting TasmoCompiler on GitPod, where there is no |
I reproduced the bug I dont have a better solution for the moment.
|
That error was due to With only |
My experience, trying to use cache with Platformio is a lottery game. Been there. |
Hi there,
I've made a small improvement to the Dockerfile that I think could help optimize the image size.
Summary of the changes:
--no-cache-dir
to thepip
command to disable the package cache.--no-install-recommends
to with apt-get in order to not install unnecessary packages and reduce the image size.Impact on the image size:
I hope that you will find these changes useful to you. Let me know if you have any questions or concerns.
Thanks,