Skip to content

Commit c1dabe5

Browse files
committed
build: allinone revert
1 parent b0afd0f commit c1dabe5

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ COPY g2-ssr/charts/* /app/charts/
4545

4646
RUN npm install
4747

48-
FROM registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6 AS pg-builder
49-
5048
# Runtime stage
5149
FROM registry.cn-qingdao.aliyuncs.com/dataease/sqlbot-base:latest
5250

@@ -56,12 +54,6 @@ ENV SQLBOT_HOME=/opt/sqlbot
5654
ENV PYTHONPATH=${SQLBOT_HOME}/app
5755
ENV PATH="${SQLBOT_HOME}/app/.venv/bin:$PATH"
5856

59-
ENV PG_PATH=/var/lib/postgresql/data
60-
ENV PG_SH=/usr/local/bin
61-
RUN mkdir -p ${PG_PATH}
62-
COPY --from=pg-builder ${PG_PATH} ${PG_PATH}
63-
COPY --from=pg-builder ${PG_SH} ${PG_SH}
64-
6557
# Copy necessary files from builder
6658
COPY start.sh /opt/sqlbot/app/start.sh
6759
COPY g2-ssr/*.ttf /usr/share/fonts/truetype/liberation/

installer/install.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SQLBOT_MCP_PORT=8001
99
## 是否使用外部数据库
1010
SQLBOT_EXTERNAL_DB=false
1111
## 数据库地址
12-
SQLBOT_DB_HOST=localhost
12+
SQLBOT_DB_HOST=sqlbot-db
1313
## 数据库端口 (仅使用外部数据库时才生效)
1414
SQLBOT_DB_PORT=5432
1515
## SQLBot 数据库库名

installer/sqlbot/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ services:
88
ports:
99
- ${SQLBOT_WEB_PORT}:8000
1010
- ${SQLBOT_MCP_PORT}:8001
11-
- 5432:5432
1211
env_file:
1312
- conf/sqlbot.conf
1413
volumes:
1514
- ./data/sqlbot/excel:/opt/sqlbot/data/excel
1615
- ./data/sqlbot/images:/opt/sqlbot/images
1716
- ./data/sqlbot/logs:/opt/sqlbot/logs
18-
- ./data/postgresql:/var/lib/postgresql/data
1917
depends_on:
2018
sqlbot-db:
2119
condition: service_healthy

start.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
SSR_PATH=/opt/sqlbot/g2-ssr
22
APP_PATH=/opt/sqlbot/app
3-
docker-entrypoint.sh postgres
43
nohup node $SSR_PATH/app.js &
54

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

0 commit comments

Comments
 (0)