mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 15:11:13 +00:00
fix docker file (#5385)
This commit is contained in:
@@ -35,7 +35,7 @@ RUN npm run build
|
||||
# Update search index if SEARCH_APPWRITEKEY is provided
|
||||
RUN if [ -n "$SEARCH_APPWRITEKEY" ]; then \
|
||||
echo "SEARCH_APPWRITEKEY found, updating search index..." && \
|
||||
npm run update-index-action; \
|
||||
(npm run update-index-action || echo "Search index update failed, but continuing..."); \
|
||||
else \
|
||||
echo "SEARCH_APPWRITEKEY not provided, skipping search index update"; \
|
||||
fi
|
||||
|
Reference in New Issue
Block a user