Skip to content

Commit 1ea52db

Browse files
refactor: allow sandbox to exec python.
1 parent 5876132 commit 1ea52db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

installer/Dockerfile-base

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
2626
find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx && \
2727
curl -L --connect-timeout 120 -m 1800 https://resource.fit2cloud.com/maxkb/ffmpeg/get-ffmpeg-linux | sh && \
2828
mkdir -p /opt/maxkb-app/sandbox/lib && chmod -R 550 /opt/maxkb-app/sandbox && \
29-
useradd --no-create-home --home /opt/maxkb-app/sandbox sandbox -g root && \
29+
useradd --no-create-home --home /opt/maxkb-app/sandbox -s /usr/sbin/nologin sandbox -g root && \
3030
chmod g-rwx /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/17/bin/* && \
31+
chmod g+xr /usr/bin/ld.so /usr/local/bin/python* && \
3132
chmod -R g-rwx /tmp /var/tmp /var/lock && \
3233
apt-get clean all && \
3334
rm -rf /var/lib/postgresql /var/lib/apt/lists/* /usr/share/doc/* /usr/share/man/* /usr/share/info/* /usr/share/locale/* /usr/share/lintian/* /usr/share/linda/* /var/cache/* /var/log/* /var/tmp/* /tmp/*

0 commit comments

Comments
 (0)