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: README.md
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,32 @@ You can manage dependencies in one of the following ways:
30
30
- You can also Go modules with vendoring, run `go mod vendor` in your function folder and add `--build-arg GO111MODULE=off --build-arg GOFLAGS='-mod=vendor'` to `faas-cli up`
31
31
- If you have a private module dependency, we recommend using the vendoring technique from above.
32
32
33
+
## Adding static files to your image
34
+
35
+
Any folder named `static` will be copied into the final image published for your function.
36
+
37
+
To read this back at runtime, you can do the following:
38
+
39
+
```go
40
+
package function
41
+
42
+
import (
43
+
"io/ioutil"
44
+
"net/http"
45
+
)
46
+
47
+
funcHandle(whttp.ResponseWriter, r *http.Request) {
0 commit comments