- 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.
推薦閱讀
- Intel Galileo Essentials
- Android Jetpack開發:原理解析與應用實戰
- DevOps入門與實踐
- Python高級編程
- WordPress Plugin Development Cookbook(Second Edition)
- Swift 4從零到精通iOS開發
- 小程序,巧應用:微信小程序開發實戰(第2版)
- Instant GLEW
- 3ds Max 2018從入門到精通
- Azure for Architects
- HTML 5與CSS 3權威指南(第4版·上冊)
- SQL Server 2012數據庫管理與開發(慕課版)
- Scala實用指南
- 嵌入式網絡編程
- Go語言從入門到進階實戰(視頻教學版)