diff --git a/Dockerfile b/Dockerfile index fee9684..6449785 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,3 @@ FROM nginx:alpine -COPY . /usr/share/nginx/html \ No newline at end of file +COPY . /usr/share/nginx/html +COPY default.conf /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..673a253 --- /dev/null +++ b/default.conf @@ -0,0 +1,14 @@ +server { + listen 80; + listen [::]:80; + server_name localhost; + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri.html; + } + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} \ No newline at end of file