openfaas / python-flask-template

HTTP and Flask-based OpenFaaS templates for Python 3
MIT License
85 stars 86 forks source link

Pass in additional packages to be installed as a step in the template Dockerfile #48

Closed d-grasshopper closed 3 years ago

d-grasshopper commented 3 years ago

My actions before raising this issue

Expected Behaviour

Ability to pass in additional packages to be installed as part of the template Dockerfile

Current Behaviour

Inability to pass additional packages to be installed as part of template Dockerfile

Possible Solution

Maybe this is already possible, but I have no idea how to pass that argument

Steps to Reproduce (for bugs)

Context

I need to do this, so that I can install the necessary dependencies to build cryptography

Your Environment

Next steps

You may join Slack for community support.

d-grasshopper commented 3 years ago

Sorry, guys, I figured it out (I'm new to OpenFAAS).

faas-cli build -f function.yml --parallel=2 --build-arg 'ADDITIONAL_PACKAGE=gcc musl-dev python3-dev libffi-dev openssl-dev cargo'