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:
+7
-6
@@ -45,12 +45,7 @@ COPY g2-ssr/charts/* /app/charts/
|
||||
|
||||
RUN npm install
|
||||
|
||||
FROM registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6
|
||||
ENV PG_PATH=/var/lib/postgresql/data
|
||||
ENV PG_SH=/usr/local/bin
|
||||
RUN mkdir -p ${PG_PATH}
|
||||
COPY --from=registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6 ${PG_PATH} ${PG_PATH}
|
||||
COPY --from=registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6 ${PG_SH} ${PG_SH}
|
||||
FROM registry.cn-qingdao.aliyuncs.com/dataease/postgres:17.6 AS pg-builder
|
||||
|
||||
# Runtime stage
|
||||
FROM registry.cn-qingdao.aliyuncs.com/dataease/sqlbot-base:latest
|
||||
@@ -61,6 +56,12 @@ ENV SQLBOT_HOME=/opt/sqlbot
|
||||
ENV PYTHONPATH=${SQLBOT_HOME}/app
|
||||
ENV PATH="${SQLBOT_HOME}/app/.venv/bin:$PATH"
|
||||
|
||||
ENV PG_PATH=/var/lib/postgresql/data
|
||||
ENV PG_SH=/usr/local/bin
|
||||
RUN mkdir -p ${PG_PATH}
|
||||
COPY --from=pg-builder ${PG_PATH} ${PG_PATH}
|
||||
COPY --from=pg-builder ${PG_SH} ${PG_SH}
|
||||
|
||||
# Copy necessary files from builder
|
||||
COPY start.sh /opt/sqlbot/app/start.sh
|
||||
COPY g2-ssr/*.ttf /usr/share/fonts/truetype/liberation/
|
||||
|
||||
Reference in New Issue
Block a user