You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli/build.md
+69-1Lines changed: 69 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -101,4 +101,72 @@ Remeber to add any `ARG` values to the template's Dockerfile:
101
101
ARG ARGNAME2
102
102
```
103
103
104
-
For more information about passing build arguments to Docker, please visit the [Docker documentation](https://docs.docker.com/engine/reference/commandline/build/)
104
+
For more information about passing build arguments to Docker, please visit the [Docker documentation](https://docs.docker.com/engine/reference/commandline/build/)
105
+
106
+
## 2.1 Build options examples
107
+
108
+
Let's see some practical examples with the `build-option` flag.
109
+
110
+
* Use [Pillow](https://pillow.readthedocs.io/en/5.2.x/) for image processing in your Python function
111
+
112
+
Create function with
113
+
114
+
```
115
+
$ faas-cli new faas-black-and-white --lang python3 --prefix <your-docker-namespace>
116
+
```
117
+
118
+
Add `pillow`, `requests` and `validators` to `requirements.txt` .
0 commit comments