From 6169810e1aae126cb650dab36b8724f401d55699 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 23 Aug 2024 16:03:15 +0800 Subject: [PATCH] ci: change python path for sandbox user --- installer/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/Dockerfile b/installer/Dockerfile index c24c756e5..937e72e52 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -47,8 +47,8 @@ ENV MAXKB_VERSION="${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_C PATH=/opt/py3/bin:$PATH \ POSTGRES_USER=root \ POSTGRES_PASSWORD=Password123@postgres \ - PIP_TARGET=/var/lib/postgresql/data/python-packages \ - PYTHONPATH=/var/lib/postgresql/data/python-packages \ + PIP_TARGET=/opt/maxkb/app/sandbox/python-packages \ + PYTHONPATH=/opt/maxkb/app/sandbox/python-packages \ PYTHONUNBUFFERED=1 WORKDIR /opt/maxkb/app @@ -60,7 +60,7 @@ RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \ cp -r /opt/maxkb/model/base/hub /opt/maxkb/model/tokenizer && \ cp -f /opt/maxkb/app/installer/run-maxkb.sh /usr/bin/run-maxkb.sh && \ cp -f /opt/maxkb/app/installer/init.sql /docker-entrypoint-initdb.d && \ - mkdir /opt/maxkb/app/sandbox && \ + mkdir -p /opt/maxkb/app/sandbox/python-packages && \ useradd --no-create-home --home /opt/maxkb/app/sandbox --shell /bin/bash sandbox && \ chown sandbox:sandbox /opt/maxkb/app/sandbox