- 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.
推薦閱讀
- 架構不再難(全5冊)
- Vue.js快速入門與深入實戰
- Blockly創意趣味編程
- PostgreSQL Replication(Second Edition)
- Apache Mesos Essentials
- Unity 5.x By Example
- 前端HTML+CSS修煉之道(視頻同步+直播)
- Flutter跨平臺開發入門與實戰
- Python數據結構與算法(視頻教學版)
- Teaching with Google Classroom
- Mastering JavaScript High Performance
- Extreme C
- JavaScript程序設計(第2版)
- Clean Code in C#
- 網絡數據采集技術:Java網絡爬蟲實戰