build: 分开镜像

This commit is contained in:
liqiang-fit2cloud 2024-03-15 17:26:25 +08:00
parent c39ba66d42
commit d2e9d5bb98
2 changed files with 2 additions and 8 deletions

View File

@ -2,4 +2,4 @@ CREATE DATABASE "maxkb";
\c "maxkb";
CREATE EXTENSION "vector" VERSION '0.6.1';
CREATE EXTENSION "vector";

View File

@ -7,10 +7,4 @@ docker-entrypoint.sh postgres &
until pg_isready --host=127.0.0.1; do sleep 1 && echo "waiting for postgres"; done
# Start MaxKB
python /opt/maxkb/app/main.py start &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?
python /opt/maxkb/app/main.py start