fix robots.txt

This commit is contained in:
2026-01-20 20:55:51 +00:00
parent c06402c4eb
commit 5907ae3bfc

View File

@@ -1,4 +1,5 @@
FROM nginx:latest FROM nginx:latest
RUN rm -rf /etc/nginx/html/*
# Install dependencies needed to add NodeSource repo # Install dependencies needed to add NodeSource repo
RUN apt-get update && apt-get install -y \ 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.conf.template /etc/nginx/nginx.conf.template
COPY nginx_setup.conf.template /etc/nginx/nginx_setup.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 COPY entrypoint.sh /entrypoint.sh
WORKDIR /app WORKDIR /app
@@ -23,9 +25,7 @@ RUN npm install
RUN npm run build RUN npm run build
RUN mkdir -p /etc/nginx/html \ RUN mkdir -p /etc/nginx/html \
&& rm -rf /etc/nginx/html/* \
&& cp -r ./dist/* /etc/nginx/html/ && cp -r ./dist/* /etc/nginx/html/
COPY robots.txt /etc/nginx/html/robots.txt
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]