1
0
mirror of https://gitlab.com/MisterBiggs/hello-world-nginx.git synced 2025-07-28 09:01:33 +00:00
This commit is contained in:
Matthias Kadenbach
2014-07-09 18:10:41 +02:00
parent 94fe36a074
commit 0263421192
4 changed files with 33 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.DS_Store

12
Dockerfile Normal file
View 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
View File

@@ -0,0 +1 @@
Hello world!

19
nginx.conf Normal file
View 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;
}
}
}