diff --git a/Dockerfile b/Dockerfile index fdb616c3b..0895f3294 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,5 +16,6 @@ RUN ${build_command} ## SERVE STAGE FROM nginx:alpine as serve-stage -# Copy assets +# Copy assets & config COPY --from=build-stage /app/www /usr/share/nginx/html +COPY ./nginx.conf /etc/nginx/conf.d/default.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 000000000..498543c33 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,11 @@ +server { + listen 0.0.0.0:80; + root /usr/share/nginx/html; + server_tokens off; + access_log off; + + location / { + try_files $uri $uri/ /index.html; + } + +}