mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
build: allinone
This commit is contained in:
+2
-2
@@ -48,7 +48,7 @@ RUN npm install
|
||||
FROM registry.cn-qingdao.aliyuncs.com/dataease/sqlbot-base:latest AS python-builder
|
||||
# Runtime stage
|
||||
# FROM registry.cn-qingdao.aliyuncs.com/dataease/sqlbot-base:latest
|
||||
FROM pgvector/pgvector:pg17
|
||||
FROM registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6
|
||||
|
||||
# python environment
|
||||
COPY --from=python-builder /usr/local /usr/local
|
||||
@@ -78,6 +78,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
|
||||
ARG DEPENDENCIES=" \
|
||||
vim \
|
||||
wait-for-it \
|
||||
postgresql-17-pgvector"
|
||||
|
||||
# ENV PGDATA=/var/lib/postgresql/data \
|
||||
@@ -108,5 +109,4 @@ EXPOSE 3000 8000 8001 5432
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:8000 || exit 1
|
||||
|
||||
CMD ["/usr/local/bin/docker-entrypoint.sh"]
|
||||
ENTRYPOINT ["sh", "start.sh"]
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
SSR_PATH=/opt/sqlbot/g2-ssr
|
||||
APP_PATH=/opt/sqlbot/app
|
||||
|
||||
/usr/local/bin/docker-entrypoint.sh
|
||||
sleep 5
|
||||
wait-for-it 127.0.0.1:5432 --timeout=120 --strict -- echo -e "\033[1;32mPostgreSQL started.\033[0m"
|
||||
|
||||
nohup node $SSR_PATH/app.js &
|
||||
|
||||
nohup uvicorn main:mcp_app --host 0.0.0.0 --port 8001 &
|
||||
|
||||
Reference in New Issue
Block a user