From 02634211926729e88c26eac6f871b3bb1608a9c2 Mon Sep 17 00:00:00 2001 From: Matthias Kadenbach Date: Wed, 9 Jul 2014 18:10:41 +0200 Subject: [PATCH] initial --- .gitignore | 1 + Dockerfile | 12 ++++++++++++ index.html | 1 + nginx.conf | 19 +++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 index.html create mode 100644 nginx.conf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..17060ae --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..6769dd6 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Hello world! \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..609467a --- /dev/null +++ b/nginx.conf @@ -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; + } + } +} \ No newline at end of file