diff --git a/Dockerfile b/Dockerfile index 64f1c0b..66cea0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ FROM nginx:mainline WORKDIR /usr/share/nginx/html COPY --from=build /usr/src/app/public . +COPY ./nginx-default.conf /etc/conf.d/default.conf RUN chmod 777 /var/cache/nginx EXPOSE 80 diff --git a/nginx-default.conf b/nginx-default.conf new file mode 100644 index 0000000..db061ab --- /dev/null +++ b/nginx-default.conf @@ -0,0 +1,15 @@ +server { + listen 8080; + server_name localhost; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + +}