| | |
| | |
| | |
| | |
| |
|
| | |
| | FROM hadadrjt/ai:latest |
| |
|
| | |
| | WORKDIR /app/backend |
| |
|
| |
|
| | |
| | |
| | RUN search='<meta name="robots" content="noindex,nofollow"' && \ |
| | replace='<meta name="robots" content="index,follow"' && \ |
| | find /app -type f -name '*.html' -exec grep -l "$search" {} \; | \ |
| | while IFS= read -r file; do \ |
| | echo "Processing: $file" && \ |
| | if sed -i "s|$search|$replace|g" "$file"; then \ |
| | echo "Success: $file updated"; \ |
| | else \ |
| | echo "Error: failed to update $file"; \ |
| | exit 1; \ |
| | fi; \ |
| | done |
| | |
| | COPY --chown=$UID:$GID src/crawlers/robots.txt /app/build/ |
| | |
| | |
| | COPY --chown=$UID:$GID src/crawlers/sitemap.xml /app/build/ |
| | |
| | |
| | COPY --chown=$UID:$GID src/webmasters/google.html /app/build/google15aba15fe250d693.html |
| | |
| | |
| | COPY --chown=$UID:$GID src/webmasters/bing.xml /app/build/BingSiteAuth.xml |
| |
|
| | |
| | EXPOSE 8000 |
| |
|
| | |
| | CMD ["bash", "start.sh"] |