mirror of
https://gitlab.com/MisterBiggs/hello-world-nginx.git
synced 2026-06-03 21:10:25 +00:00
initial
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
.DS_Store
|
||||||
+12
@@ -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"]
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Hello world!
|
||||||
+19
@@ -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