Skip to content

Commit 758c473

Browse files
committed
build: allinone
1 parent 0182404 commit 758c473

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RUN npm install
4848
FROM 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
5454
COPY --from=python-builder /usr/local /usr/local
@@ -78,6 +78,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
7878

7979
ARG 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
108109
HEALTHCHECK --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"]
112112
ENTRYPOINT ["sh", "start.sh"]

start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
SSR_PATH=/opt/sqlbot/g2-ssr
22
APP_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+
38
nohup node $SSR_PATH/app.js &
49

510
nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 &

0 commit comments

Comments
 (0)