Skip to content

Commit 2144c2e

Browse files
committed
fix: update base image version in Dockerfile to python3.13-pg17.10-20260624
1 parent ca77582 commit 2144c2e

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/common/utils/tool_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def exec_code(self, code_str, keywords, function_name=None):
112112
try:
113113
import os, sys, json
114114
from contextlib import redirect_stdout
115-
path_to_exclude = ['/opt/py3/lib/python3.11/site-packages', '/opt/maxkb-app/apps']
115+
path_to_exclude = ['/opt/py3/lib/python3.13/site-packages', '/opt/maxkb-app/apps']
116116
sys.path = [p for p in sys.path if p not in path_to_exclude]
117117
sys.path += {_sandbox_python_sys_path}
118118
_id = os.environ.get("_ID")
@@ -312,7 +312,7 @@ def generate_mcp_server_code(self, code_str, params, name, description, tool_id)
312312
logging.basicConfig(level=logging.WARNING)
313313
logging.getLogger("mcp").setLevel(logging.ERROR)
314314
logging.getLogger("mcp.server").setLevel(logging.ERROR)
315-
path_to_exclude = ['/opt/py3/lib/python3.11/site-packages', '/opt/maxkb-app/apps']
315+
path_to_exclude = ['/opt/py3/lib/python3.13/site-packages', '/opt/maxkb-app/apps']
316316
sys.path = [p for p in sys.path if p not in path_to_exclude]
317317
sys.path += {_sandbox_python_sys_path}
318318
{set_run_user}

apps/maxkb/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def get_log_level(self):
129129
def get_sandbox_python_package_paths(self):
130130
return self.get(
131131
"SANDBOX_PYTHON_PACKAGE_PATHS",
132-
"/opt/py3/lib/python3.11/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages",
132+
"/opt/py3/lib/python3.13/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages",
133133
)
134134

135135
def get_admin_path(self):

installer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN cd ui && ls -la && if [ -d "dist" ]; then exit 0; fi && \
66
NODE_OPTIONS="--max-old-space-size=4096" npx concurrently "npm run build" "npm run build-chat" && \
77
find . -maxdepth 1 ! -name '.' ! -name 'dist' ! -name 'public' -exec rm -rf {} +
88

9-
FROM ghcr.io/1panel-dev/maxkb-base:python3.13-pg17.10-20260525 AS stage-build
9+
FROM ghcr.io/1panel-dev/maxkb-base:python3.13-pg17.10-20260624 AS stage-build
1010
COPY --chmod=700 . /opt/maxkb-app
1111
RUN apt-get update && \
1212
apt-get install -y --no-install-recommends gcc g++ gettext libexpat1-dev libffi-dev && \
@@ -24,7 +24,7 @@ RUN gcc -shared -fPIC -o ${MAXKB_SANDBOX_HOME}/lib/sandbox.so /opt/maxkb-app/ins
2424
rm -rf /opt/maxkb-app/installer
2525
COPY --from=web-build --chmod=700 ui /opt/maxkb-app/ui
2626

27-
FROM ghcr.io/1panel-dev/maxkb-base:python3.13-pg17.10-20260525
27+
FROM ghcr.io/1panel-dev/maxkb-base:python3.13-pg17.10-20260624
2828
ARG DOCKER_IMAGE_TAG=dev \
2929
BUILD_AT \
3030
GITHUB_COMMIT

installer/Dockerfile-base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ENV PATH=/opt/py3/bin:$PATH \
4747
MAXKB_LOG_LEVEL=INFO \
4848
MAXKB_SANDBOX=1 \
4949
MAXKB_SANDBOX_HOME=/opt/maxkb-app/sandbox \
50-
MAXKB_SANDBOX_PYTHON_PACKAGE_PATHS="/opt/py3/lib/python3.11/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages" \
50+
MAXKB_SANDBOX_PYTHON_PACKAGE_PATHS="/opt/py3/lib/python3.13/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages" \
5151
MAXKB_SANDBOX_PYTHON_BANNED_HOSTS="127.0.0.0/8,localhost,host.docker.internal,172.17.0.0/16,maxkb,pgsql,redis,172.31.250.192/26,0.0.0.0/32,::/0" \
5252
MAXKB_ADMIN_PATH=/admin
5353

0 commit comments

Comments
 (0)