File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ RUN npm install
4848FROM registry.cn-qingdao.aliyuncs.com/dataease/sqlbot-base:latest AS python-builder
4949# Runtime stage
5050# FROM registry.cn-qingdao.aliyuncs.com/dataease/sqlbot-base:latest
51- FROM pgvector/pgvector:pg17
51+ FROM registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6
5252
5353# python environment
5454COPY --from=python-builder /usr/local /usr/local
@@ -78,6 +78,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
7878
7979ARG DEPENDENCIES=" \
8080 vim \
81+ wait-for-it \
8182 postgresql-17-pgvector"
8283
8384# ENV PGDATA=/var/lib/postgresql/data \
@@ -108,5 +109,4 @@ EXPOSE 3000 8000 8001 5432
108109HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
109110 CMD curl -f http://localhost:8000 || exit 1
110111
111- CMD ["/usr/local/bin/docker-entrypoint.sh" ]
112112ENTRYPOINT ["sh" , "start.sh" ]
Original file line number Diff line number Diff line change 11SSR_PATH=/opt/sqlbot/g2-ssr
22APP_PATH=/opt/sqlbot/app
3+
4+ /usr/local/bin/docker-entrypoint.sh
5+ sleep 5
6+ wait-for-it 127.0.0.1:5432 --timeout=120 --strict -- echo -e " \033[1;32mPostgreSQL started.\033[0m"
7+
38nohup node $SSR_PATH /app.js &
49
510nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 &
You can’t perform that action at this time.
0 commit comments