- 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.
推薦閱讀
- C# 7 and .NET Core Cookbook
- Advanced Machine Learning with Python
- 劍指JVM:虛擬機實踐與性能調優
- 深入淺出WPF
- NLTK基礎教程:用NLTK和Python庫構建機器學習應用
- DevOps入門與實踐
- Wireshark Network Security
- Python金融數據分析
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- Arduino家居安全系統構建實戰
- 機器學習與R語言實戰
- Java EE 8 and Angular
- WordPress Search Engine Optimization(Second Edition)
- Python數據預處理技術與實踐
- 精益軟件開發管理之道