diff --git a/.dockerignore b/.dockerignore index a6374c1..f42b17d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,9 @@ -/assets/index.html +# Exclude everything by default +* + +# But include these +!Dockerfile +!docker-compose.yml +!.dockerignore +!assets/ +!default.conf diff --git a/Dockerfile b/Dockerfile index d7776e8..9edf874 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM nginx:alpine +COPY default.conf /etc/nginx/conf.d/default.conf COPY assets/ /usr/share/nginx/html/ EXPOSE 58881 CMD ["nginx", "-g", "daemon off;"] diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..e979a90 --- /dev/null +++ b/default.conf @@ -0,0 +1,10 @@ +server { + listen 58881 default_server; + server_name localhost; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ =404; + } +} diff --git a/index.html b/index.html deleted file mode 100644 index b30474e..0000000 --- a/index.html +++ /dev/null @@ -1,225 +0,0 @@ - - -
- - -