Skip to content

Commit c114eff

Browse files
refactor: change dir permissions.
1 parent 56a8795 commit c114eff

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

installer/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,10 @@ ENV MAXKB_VERSION="${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_C
4747
MAXKB_LOCAL_MODEL_PROTOCOL=http \
4848
PIP_TARGET=/opt/maxkb/python-packages
4949

50-
5150
WORKDIR /opt/maxkb-app
5251
COPY --from=stage-build /opt/maxkb-app /opt/maxkb-app
5352
COPY --from=stage-build /opt/py3 /opt/py3
5453

55-
RUN chmod 755 /tmp
56-
5754
EXPOSE 8080
5855
VOLUME /opt/maxkb
5956
ENTRYPOINT ["bash", "-c"]

installer/Dockerfile-base

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
3030
chmod g-xr /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/17/bin/* && \
3131
chmod g+xr /usr/bin/ld.so && \
3232
chmod g+x /usr/local/bin/python* && \
33+
chmod -R g-rwx /tmp /var/tmp /dev/shm /var/lock && \
3334
apt-get clean all && \
3435
rm -rf /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/*
3536
COPY --from=vector-model --chmod=700 /opt/maxkb-app/model /opt/maxkb-app/model

0 commit comments

Comments
 (0)