mirror of
https://gitlab.com/MisterBiggs/hello-world-nginx.git
synced 2025-07-28 00:51:34 +00:00
initial
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.DS_Store
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
# docker build -t mattes/hello-world-nginx .
|
||||
# docker run -p 8090:80 mattes/hello-world-nginx
|
||||
|
||||
FROM ubuntu:14.04
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y nginx
|
||||
ADD nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
ADD ./ /www-data
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["nginx"]
|
1
index.html
Normal file
1
index.html
Normal file
@@ -0,0 +1 @@
|
||||
Hello world!
|
19
nginx.conf
Normal file
19
nginx.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
daemon off;
|
||||
pid /var/lib/nginx/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
index index.html;
|
||||
|
||||
server {
|
||||
listen *:80;
|
||||
|
||||
location / {
|
||||
root /www-data;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user