added website
This commit is contained in:
parent
78313059e7
commit
fa42f3bd5a
|
@ -0,0 +1,12 @@
|
|||
FROM alpine
|
||||
|
||||
RUN apk add nginx
|
||||
|
||||
COPY index.html /var/lib/nginx/html/index.html
|
||||
COPY style.css /var/lib/nginx/html/style.css
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
CMD ["nginx"]
|
||||
|
||||
EXPOSE 80
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
## Hosting
|
||||
|
||||
This site is not hosted publicly at the moment because I don't own a domain name or VPS.
|
||||
|
||||
## Usage
|
||||
|
||||
Use the Dockerfile to build a docker image and then make a container to view the site
|
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Demo Site
|
||||
</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
Welcome!
|
||||
</h1>
|
||||
<hr>
|
||||
<p>
|
||||
This website is using a CSS stylesheet.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
user nginx;
|
||||
worker_processes auto;
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
access_log /var/log/nginx/access.log;
|
||||
keepalive_timeout 3000;
|
||||
server {
|
||||
listen 80;
|
||||
root /var/lib/nginx/html;
|
||||
index index.html index.htm;
|
||||
server_name localhost;
|
||||
client_max_body_size 32m;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /var/lib/nginx/html;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
body {
|
||||
background-color: #E&E2D2
|
||||
}
|
||||
h1 {
|
||||
margin-left: 5%
|
||||
font-weight: bold
|
||||
}
|
||||
p {
|
||||
margin-left: 10%
|
||||
}
|
||||
|
Loading…
Reference in New Issue