From 5907ae3bfcf70ea7b2234cde5255af3341938dca Mon Sep 17 00:00:00 2001 From: Adam French Date: Tue, 20 Jan 2026 20:55:51 +0000 Subject: [PATCH] fix robots.txt --- nginx/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 6aade87..2b05179 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -1,4 +1,5 @@ FROM nginx:latest +RUN rm -rf /etc/nginx/html/* # Install dependencies needed to add NodeSource repo RUN apt-get update && apt-get install -y \ @@ -15,6 +16,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ COPY nginx.conf.template /etc/nginx/nginx.conf.template COPY nginx_setup.conf.template /etc/nginx/nginx_setup.conf.template +COPY robots.txt /etc/nginx/html/robots.txt COPY entrypoint.sh /entrypoint.sh WORKDIR /app @@ -23,9 +25,7 @@ RUN npm install RUN npm run build RUN mkdir -p /etc/nginx/html \ - && rm -rf /etc/nginx/html/* \ && cp -r ./dist/* /etc/nginx/html/ -COPY robots.txt /etc/nginx/html/robots.txt ENTRYPOINT ["/entrypoint.sh"]