Skip to content

Commit fcf2589

Browse files
authored
Merge pull request #57964 from cephalin/issue#18840
#18840
2 parents f5f38a8 + 43fd9b9 commit fcf2589

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

articles/app-service/containers/app-service-linux-intro.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ App Service on Linux supports a number of Built-in images in order to increase d
2929

3030
| Language | Supported Versions |
3131
|---|---|
32-
| Node.js | 4.4, 4.5, 4.8, 6.2, 6.6, 6.9, 6.10, 6.11, 8.0, 8.1, 8.2, 8.8, 8.9, 8.11, 9.4, 10.1 |
33-
| Java * | 8.0 |
32+
| Node.js | 4.4, 4.5, 4.8, 6.2, 6.6, 6.9, 6.10, 6.11, 8.0, 8.1, 8.2, 8.8, 8.9, 8.11, 9.4, 10.1,10.10 |
33+
| Java * | Tomcat 8.5, 9.0, Java SE, WildFly 14 (all running JRE 8) |
3434
| PHP | 5.6, 7.0, 7.2 |
35-
| Python (Preview) | 3.7 |
36-
| .NET Core | 1.0, 1.1, 2.0 |
35+
| Python (Preview) | 3.6, 3.7 |
36+
| .NET Core | 1.0, 1.1, 2.0, 2.1 |
3737
| Ruby | 2.3 |
38-
| Apache Tomcat | 8.5, 9.0 |
3938

4039
See [Create a Java web app in App Service on Linux](https://docs.microsoft.com/azure/app-service/containers/quickstart-java) for more details.
4140

articles/app-service/containers/how-to-configure-python.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,28 @@ ms.custom: mvc
2323

2424
This article describes how [Azure App Service on Linux](app-service-linux-intro.md) runs Python apps, and how you can customize the behavior of App Service when needed.
2525

26+
## Set Python version
27+
28+
Two base images are available: Python 3.6 and Python 3.7. You can create an app with the desired Python based image. For example, to create an app with Python 3.7, run the following command in the Cloud Shell:
29+
30+
```azurecli-interactive
31+
az webapp create --resource-group <group_name> --plan <plan_name> --name <app_name> --runtime "PYTHON|3.7"
32+
```
33+
34+
To change the Python version (based image) to Python 3.6, for example, run the following command in the Cloud Shell:
35+
36+
```azurecli-interactive
37+
az webapp config set --resource-group <group_name> --name <app_name> --linux-fx-version "PYTHON|3.6"
38+
```
39+
40+
If you require a different version of Python, you must build and deploy your own container image instead. For more information, see [Use a custom Docker image for Web App for Containers](tutorial-custom-docker-image.md).
41+
2642
## Container characteristics
2743

28-
Python apps deployed to App Service on Linux run within a Docker container that's defined in the GitHub repository, [Azure-App-Service/python container](https://github.com/Azure-App-Service/python/tree/master/3.7.0).
44+
Python apps deployed to App Service on Linux run within a Docker container that's defined in the GitHub repository, [Python 3.6](https://github.com/Azure-App-Service/python/tree/master/3.6.6) or [Python 3.7](https://github.com/Azure-App-Service/python/tree/master/3.7.0).
2945

3046
This container has the following characteristics:
3147

32-
- The base container image is `python-3.7.0-slim-stretch`, which means apps are run with Python 3.7. If you require a different version of Python, you must build and deploy your own container image instead. For more information, see [Use a custom Docker image for Web App for Containers](tutorial-custom-docker-image.md).
33-
3448
- Apps are run using the [Gunicorn WSGI HTTP Server](http://gunicorn.org/), using the additional arguments `--bind=0.0.0.0 --timeout 600`.
3549

3650
- By default, the base image includes the Flask web framework, but the container supports other frameworks that are WSGI-compliant and compatible with Python 3.7, such as Django.

0 commit comments

Comments
 (0)