Created
November 18, 2021 16:11
-
-
Save voa2000/58d3322631d5b94cb4f9cfe62ddd906a to your computer and use it in GitHub Desktop.
Files needed to create a Docker Image to host a single page website using NGINX website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
RUN apt-get update | |
RUN apt-get install nginx -y | |
COPY index.html /var/www/html/ | |
EXPOSE 80 | |
CMD ["nginx","-g","daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Our Company</title> | |
</head> | |
<body> | |
<h1>Welcome to Our Company</h1> | |
<h2>Web Site Main Ingredients:</h2> | |
<p>Pages (HTML)</p> | |
<p>Style Sheets (CSS)</p> | |
<p>Computer Code (JavaScript)</p> | |
<p>React Scripts (JSX) </p> | |
<p>Live Data (Files and Databases)</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment