build: update dockerfiles.

This commit is contained in:
liqiang-fit2cloud 2025-06-24 17:38:02 +08:00
parent 324a1b54c6
commit 9c866b1907
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,8 @@ COPY --from=stage-build /opt/maxkb-app /opt/maxkb-app
COPY --from=stage-build /opt/py3 /opt/py3 COPY --from=stage-build /opt/py3 /opt/py3
COPY --from=vector-model /opt/maxkb-app/model /opt/maxkb-app/model 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 && \ useradd --no-create-home --home /opt/maxkb-app/sandbox sandbox -g root && \
chown -R sandbox:root /opt/maxkb-app/sandbox && \ 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/* && \ chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/17/bin/* && \

View File

@ -23,7 +23,6 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
apt-get clean all && \ apt-get clean all && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
chmod 755 /usr/bin/start-*.sh && \ chmod 755 /usr/bin/start-*.sh && \
chmod 755 /tmp && \
find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx && \ 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 curl -L --connect-timeout 120 -m 1800 https://resource.fit2cloud.com/maxkb/ffmpeg/get-ffmpeg-linux | sh