Skip to content

Commit c5bf533

Browse files
committed
Adding a section for Custom dockerfile templates
1 parent 580a12d commit c5bf533

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

articles/azure-functions/functions-how-to-custom-container.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ The Azure Functions extension for Visual Studio Code creates your Dockerfile whe
9898

9999
---
100100

101+
### Custom Dockerfile templates
102+
103+
If you need to build a fully custom Dockerfile instead of using the Functions-generated one, you can use the templates in the [custom-container](https://github.com/Azure/azure-functions-docker/tree/dev/custom-container) folder of the `azure-functions-docker` repository:
104+
105+
- [**template.Dockerfile**](https://github.com/Azure/azure-functions-docker/blob/dev/custom-container/template.Dockerfile): A commented, step-by-step guide for building a custom container. It includes instructions for multiple language runtimes (Java, .NET isolated, Node.js, PowerShell, Python), optional CA certificate installation, running as a non-root user, and enabling SSH for Kudu debugging.
106+
- [**sample.Dockerfile**](https://github.com/Azure/azure-functions-docker/blob/dev/custom-container/sample.Dockerfile): A ready-to-use example built from the template that creates a Java-based Azure Functions container with SSH enabled for Kudu debugging.
107+
101108
## Create your function app in a container
102109

103110
With a Functions-generated Dockerfile in your code project, you can use Docker to create the containerized function app on your local computer. The following `docker build` command creates an image of your containerized functions from the project in the local directory:

0 commit comments

Comments
 (0)