- Hands-On Kubernetes on Windows
- Piotr Tylenda
- 136字
- 2021-06-24 16:53:59
Creating a sample HTML web page
We will start creating our Docker image by creating a minimalistic HTML "Hello World!" web page. This step mimics implementing an application without any containerization and is a common scenario in application development: you are running a non-containerized application and then you move it to a Docker container.
You can also use the files from this book's GitHub repository to do this, available from: https://github.com/PacktPublishing/Hands-On-Kubernetes-on-Windows/tree/master/Chapter01/01_docker-helloworld-iis.
Add a new file in Visual Studio Code in your workspace using the Ctrl + N shortcut or by navigating to File > New File. Use the following sample HTML code in the new file:
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World from Windows container!</h1>
</body>
</html>
Save the file (using Ctrl + S) as index.html in your workspace.
Let's proceed with creating the Dockerfile itself.
推薦閱讀
- SQL Server 2012數據庫技術及應用(微課版·第5版)
- Learning ArcGIS Pro 2
- Visual FoxPro 程序設計
- Dependency Injection in .NET Core 2.0
- Hands-On JavaScript High Performance
- Functional Programming in JavaScript
- Learning Neo4j 3.x(Second Edition)
- JavaScript從入門到精通(第3版)
- 軟件工程
- SQL經典實例(第2版)
- Domain-Driven Design in PHP
- MATLAB GUI純代碼編寫從入門到實戰
- C++語言程序設計
- Java Web動態網站開發(第2版·微課版)
- Learning Alfresco Web Scripts