From 9c866b1907349b3c2c483a3b0207d9ad422f05a7 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Tue, 24 Jun 2025 17:38:02 +0800 Subject: [PATCH] build: update dockerfiles. --- installer/Dockerfile | 3 ++- installer/Dockerfile-base | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/Dockerfile b/installer/Dockerfile index 0563372a..5adaf618 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -65,7 +65,8 @@ COPY --from=stage-build /opt/maxkb-app /opt/maxkb-app COPY --from=stage-build /opt/py3 /opt/py3 COPY --from=vector-model /opt/maxkb-app/model /opt/maxkb-app/model -RUN find /opt/maxkb-app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \ +RUN chmod 755 /tmp && \ + find /opt/maxkb-app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \ useradd --no-create-home --home /opt/maxkb-app/sandbox sandbox -g root && \ chown -R sandbox:root /opt/maxkb-app/sandbox && \ chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/17/bin/* && \ diff --git a/installer/Dockerfile-base b/installer/Dockerfile-base index 326d4528..7d5236c4 100644 --- a/installer/Dockerfile-base +++ b/installer/Dockerfile-base @@ -23,7 +23,6 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ apt-get clean all && \ rm -rf /var/lib/apt/lists/* && \ chmod 755 /usr/bin/start-*.sh && \ - chmod 755 /tmp && \ find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx && \ curl -L --connect-timeout 120 -m 1800 https://resource.fit2cloud.com/maxkb/ffmpeg/get-ffmpeg-linux | sh