openfaas / templates

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

Added GCC to Dockerfile #185

Closed ranaroussi closed 4 years ago

ranaroussi commented 4 years ago

Description

Added GCC to Dockerfile to allow for Cython-based libraries (Pandas, Numpy, etc)

Motivation and Context

When requirements.txt lists Cython-based libraries (Pandas, Numpy, etc) the command faas-cli build -f ./function.yml fails as these require GCC to build.

derek[bot] commented 4 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.

alexellis commented 4 years ago

Hi please use the --build-option for this purpose. It's also documented at https://docs.openfaas.com