diff --git a/apps/dashboard/Dockerfile b/apps/dashboard/Dockerfile index c55d39b261b32cb6fe9a31b41530d8df0153f572..9290d479a1355bbd38182f42f927ddca223f4887 100644 --- a/apps/dashboard/Dockerfile +++ b/apps/dashboard/Dockerfile @@ -23,7 +23,7 @@ RUN rm -rf /usr/share/nginx/html/* COPY --from=builder /app/dist/apps/dashboard /usr/share/nginx/html EXPOSE 80 - +COPY apps/dashboard/nginx.conf /etc/nginx/conf.d/default.conf # Copy custom entrypoint script COPY apps/dashboard/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/apps/dashboard/nginx.conf b/apps/dashboard/nginx.conf new file mode 100644 index 0000000000000000000000000000000000000000..9e291d4d6364b11629f5249c8f474b44b95e5189 --- /dev/null +++ b/apps/dashboard/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 80; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +}