Skip to content

Instantly share code, notes, and snippets.

@voa2000
Created November 18, 2021 16:11
Show Gist options
  • Save voa2000/58d3322631d5b94cb4f9cfe62ddd906a to your computer and use it in GitHub Desktop.
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
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;"]
<!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