fix: move es init to init_docker or local script (#465)
This commit is contained in:
@@ -70,11 +70,4 @@ RUN chmod +x /app/parse_pdf.py /app/parse_docx.py && \
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
# Use a script to start both applications
|
||||
COPY backend/script/bootstrap.sh /app/bootstrap.sh
|
||||
COPY docker/volumes/elasticsearch/setup_es.sh /app/setup_es.sh
|
||||
COPY docker/volumes/elasticsearch/es_index_schema /app/es_index_schemas
|
||||
|
||||
RUN chmod +x /app/bootstrap.sh /app/setup_es.sh
|
||||
|
||||
CMD ["/app/bootstrap.sh"]
|
||||
CMD ["/app/opencoze"]
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Bootstrapping Coze Studio... 07-30"
|
||||
|
||||
# Set up Elasticsearch
|
||||
echo "Setting up Elasticsearch..."
|
||||
/app/setup_es.sh --index-dir /app/es_index_schemas
|
||||
|
||||
# Start the main application in the foreground
|
||||
echo "Starting main application..."
|
||||
/app/opencoze
|
||||
echo "Main application exited."
|
||||
Reference in New Issue
Block a user