add delay to ensure ready

parent 17cb4558
......@@ -16,10 +16,7 @@ COPY . .
# Make the script executable
RUN chmod +x wait-for-postgres.sh
RUN chmod +x start.sh
# Use the full path for the entrypoint
ENTRYPOINT ["/app/wait-for-postgres.sh"]
# This is your application's original startup command
#CMD ["/bin/bash", "-c", "python apply_test_schema.py && python insert_csv_embeddings.py && python main.py"]
CMD ["python", "main.py"]
\ No newline at end of file
ENTRYPOINT ["/app/start.sh"]
\ No newline at end of file
......@@ -9,5 +9,6 @@ python apply_test_schema.py
python insert_csv_embeddings.py
echo "Database setup complete."
sleep 5
# Start the web server and keep it as the main process
exec uvicorn main:app --host 0.0.0.0 --port 8000
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment