openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
276 stars 228 forks source link

Ignore pip cache in docker build #259

Open santuari opened 3 years ago

santuari commented 3 years ago

Description

The pip cache is created during the Docker build and it might occupy around 50MB. The cache is not needed for running the application.

Motivation and Context

Reduce the size of the Docker image

How Has This Been Tested?

I tested by pushing the same function with and without the cache. I also expect that this cannot impact the function behavior.

Types of changes

Impact to existing users

Checklist:

derek[bot] commented 3 years ago

Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. Tip: if you only have one commit so far then run: git commit --amend --signoff and then git push --force.

santuari commented 3 years ago

Hi all,

I have created this PR that it is very simple. and I guess that no tests are needed. Should I do something more?

santuari commented 3 years ago

Any news on this?