Skip to content

Commit d4148b7

Browse files
Minor fixes.
1 parent 7abacdb commit d4148b7

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

articles/app-service/includes/quickstart-custom-container/quickstart-custom-container-linux-visual-studio-code-pivot.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -54,66 +54,66 @@ docker --version
5454

5555
1. In Visual Studio Code, open an empty folder and add a file called *Dockerfile*. In the Dockerfile, paste the content based on your desired language framework:
5656

57-
# [.NET](#tab/dotnet)
57+
# [.NET](#tab/dotnet)
5858

59-
<!-- https://mcr.microsoft.com/v2/appsvc%2Fdotnetcore/tags/list -->
60-
```dockerfile
61-
FROM mcr.microsoft.com/appsvc/dotnetcore:lts
59+
<!-- https://mcr.microsoft.com/v2/appsvc%2Fdotnetcore/tags/list -->
60+
```dockerfile
61+
FROM mcr.microsoft.com/appsvc/dotnetcore:lts
6262

63-
ENV PORT 8080
64-
EXPOSE 8080
63+
ENV PORT 8080
64+
EXPOSE 8080
6565

66-
ENV ASPNETCORE_URLS "http://*:${PORT}"
66+
ENV ASPNETCORE_URLS "http://*:${PORT}"
6767

68-
ENTRYPOINT ["dotnet", "/defaulthome/hostingstart/hostingstart.dll"]
69-
```
68+
ENTRYPOINT ["dotnet", "/defaulthome/hostingstart/hostingstart.dll"]
69+
```
7070

71-
In this Dockerfile, the parent image is one of the built-in .NET containers of App Service.
71+
In this Dockerfile, the parent image is one of the built-in .NET containers of App Service.
7272

73-
# [Node.js](#tab/node)
73+
# [Node.js](#tab/node)
7474

75-
<!-- https://mcr.microsoft.com/v2/appsvc%2Fnode/tags/list -->
76-
```dockerfile
77-
FROM mcr.microsoft.com/appsvc/node:10-lts
75+
<!-- https://mcr.microsoft.com/v2/appsvc%2Fnode/tags/list -->
76+
```dockerfile
77+
FROM mcr.microsoft.com/appsvc/node:10-lts
7878

79-
ENV HOST 0.0.0.0
80-
ENV PORT 8080
81-
EXPOSE 8080
79+
ENV HOST 0.0.0.0
80+
ENV PORT 8080
81+
EXPOSE 8080
8282

83-
ENTRYPOINT ["pm2", "start", "--no-daemon", "/opt/startup/default-static-site.js"]
84-
```
83+
ENTRYPOINT ["pm2", "start", "--no-daemon", "/opt/startup/default-static-site.js"]
84+
```
8585

86-
In this Dockerfile, the parent image is one of the built-in Node.js containers of App Service.
86+
In this Dockerfile, the parent image is one of the built-in Node.js containers of App Service.
8787

88-
# [Python](#tab/python)
88+
# [Python](#tab/python)
8989

90-
<!-- https://mcr.microsoft.com/v2/appsvc%2Fpython/tags/list -->
91-
```dockerfile
92-
FROM mcr.microsoft.com/appsvc/python:latest
90+
<!-- https://mcr.microsoft.com/v2/appsvc%2Fpython/tags/list -->
91+
```dockerfile
92+
FROM mcr.microsoft.com/appsvc/python:latest
9393

94-
ENV PORT 8080
95-
EXPOSE 8080
94+
ENV PORT 8080
95+
EXPOSE 8080
9696

97-
ENTRYPOINT ["gunicorn", "--timeout", "600", "--access-logfile", "'-'", "--error-logfile", "'-'", "--chdir=/opt/defaultsite", "application:app"]
98-
```
97+
ENTRYPOINT ["gunicorn", "--timeout", "600", "--access-logfile", "'-'", "--error-logfile", "'-'", "--chdir=/opt/defaultsite", "application:app"]
98+
```
9999

100-
In this Dockerfile, the parent image is one of the built-in Python containers of App Service.
100+
In this Dockerfile, the parent image is one of the built-in Python containers of App Service.
101101

102-
# [Java](#tab/java)
102+
# [Java](#tab/java)
103103

104-
<!-- https://mcr.microsoft.com/v2/azure-app-service%2Fjava/tags/list -->
105-
```dockerfile
106-
FROM mcr.microsoft.com/azure-app-service/java:11-java11_stable
104+
<!-- https://mcr.microsoft.com/v2/azure-app-service%2Fjava/tags/list -->
105+
```dockerfile
106+
FROM mcr.microsoft.com/azure-app-service/java:11-java11_stable
107107

108-
ENV PORT 80
109-
EXPOSE 80
108+
ENV PORT 80
109+
EXPOSE 80
110110

111-
ENTRYPOINT ["java", "-Dserver.port=80", "-jar", "/tmp/appservice/parkingpage.jar"]
112-
```
111+
ENTRYPOINT ["java", "-Dserver.port=80", "-jar", "/tmp/appservice/parkingpage.jar"]
112+
```
113113

114-
In this Dockerfile, the parent image is one of the built-in Java containers of App Service. You can find the source files for it at [java/tree/dev/java11-alpine](https://github.com/Azure-App-Service/java/tree/dev/java11-alpine). Its [Dockerfile](https://github.com/Azure-App-Service/java/blob/dev/java11-alpine/Dockerfile) copies a simple Java app into `/tmp/appservice`. Your Dockerfile starts that app.
114+
In this Dockerfile, the parent image is one of the built-in Java containers of App Service. You can find the source files for it at [java/tree/dev/java11-alpine](https://github.com/Azure-App-Service/java/tree/dev/java11-alpine). Its [Dockerfile](https://github.com/Azure-App-Service/java/blob/dev/java11-alpine/Dockerfile) copies a simple Java app into `/tmp/appservice`. Your Dockerfile starts that app.
115115

116-
---
116+
---
117117

118118
1. [Open the Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette), and type **Docker Images: Build Image**. Select **Enter** to run the command.
119119

articles/app-service/includes/quickstart-custom-container/quickstart-custom-container-windows-cli-pivot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ az webapp create --name myContainerApp --plan myAppServicePlan --resource-group
6666

6767
Browse to the deployed application in your web browser at the URL `http://<app-name>.azurewebsites.net`.
6868

69-
:::image type="content" source="../../media/quickstart-custom-container/browse-custom-container-windows-cli.png" alt-text="Screenshot of the Windows App Service with messaging that containers without a port exposed runs in background mode.":::
69+
:::image type="content" source="../../media/quickstart-custom-container/browse-custom-container-windows-cli.png" alt-text="Screenshot of the Windows App Service with messaging that containers without a port exposed runs in background mode." lightbox="../../media/quickstart-custom-container/browse-custom-container-windows-cli.png":::
7070

7171
## Clean up resources
7272

articles/app-service/includes/quickstart-custom-container/quickstart-custom-container-windows-powershell-pivot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The command might take a few minutes to complete.
6666

6767
Browse to the deployed application in your web browser at the URL `http://<app-name>.azurewebsites.net`.
6868

69-
:::image type="content" source="../../media/quickstart-custom-container/browse-custom-container-windows-powershell.png" alt-text="Screenshot of the Windows App Service with messaging that containers without a port exposed runs in background mode.":::
69+
:::image type="content" source="../../media/quickstart-custom-container/browse-custom-container-windows-powershell.png" alt-text="Screenshot of the Windows App Service with messaging that containers without a port exposed runs in background mode." lightbox="../../media/quickstart-custom-container/browse-custom-container-windows-powershell.png":::
7070

7171
## Clean up resources
7272

0 commit comments

Comments
 (0)