Skip to content

Commit da40df8

Browse files
PramodValavala-MSFTGlenn Gailey
authored andcommitted
Add dockerfile to folder structure
1 parent 570b2b9 commit da40df8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/azure-functions/functions-reference-python.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ The recommended folder structure for a Python Functions project looks like the f
7272
| | - my_second_helper_function.py
7373
| - host.json
7474
| - requirements.txt
75+
| - Dockerfile
7576
tests
7677
```
7778
The main project folder (\_\_app\_\_) can contain the following files:
@@ -81,11 +82,13 @@ The main project folder (\_\_app\_\_) can contain the following files:
8182
* *host.json*: Contains global configuration options that affect all functions in a function app. This file does get published to Azure. Not all options are supported when running locally. To learn more, see [host.json](functions-host-json.md).
8283
* *.funcignore*: (Optional) declares files that shouldn't get published to Azure.
8384
* *.gitignore*: (Optional) declares files that are excluded from a git repo, such as local.settings.json.
85+
* *Dockerfile*: (Optional) used when publishing your project in a [custom container](functions-create-function-linux-custom-image.md).
8486

8587
Each function has its own code file and binding configuration file (function.json).
8688

8789
When deploying your project to a function app in Azure, the entire contents of the main project (*\_\_app\_\_*) folder should be included in the package, but not the folder itself. We recommend that you maintain your tests in a folder separate from the project folder, in this example `tests`. This keeps you from deploying test code with your app. For more information, see [Unit Testing](#unit-testing).
8890

91+
8992
## Import behavior
9093

9194
You can import modules in your function code using both explicit relative and absolute references. Based on the folder structure shown above, the following imports work from within the function file *\_\_app\_\_\my\_first\_function\\_\_init\_\_.py*:

0 commit comments

Comments
 (0)