Skip to content

Commit 9c866b1

Browse files
build: update dockerfiles.
1 parent 324a1b5 commit 9c866b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

installer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ COPY --from=stage-build /opt/maxkb-app /opt/maxkb-app
6565
COPY --from=stage-build /opt/py3 /opt/py3
6666
COPY --from=vector-model /opt/maxkb-app/model /opt/maxkb-app/model
6767

68-
RUN find /opt/maxkb-app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \
68+
RUN chmod 755 /tmp && \
69+
find /opt/maxkb-app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \
6970
useradd --no-create-home --home /opt/maxkb-app/sandbox sandbox -g root && \
7071
chown -R sandbox:root /opt/maxkb-app/sandbox && \
7172
chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/17/bin/* && \

installer/Dockerfile-base

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
2323
apt-get clean all && \
2424
rm -rf /var/lib/apt/lists/* && \
2525
chmod 755 /usr/bin/start-*.sh && \
26-
chmod 755 /tmp && \
2726
find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx && \
2827
curl -L --connect-timeout 120 -m 1800 https://resource.fit2cloud.com/maxkb/ffmpeg/get-ffmpeg-linux | sh
2928

0 commit comments

Comments
 (0)