Skip to content

Commit 324a1b5

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

installer/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ 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 curl -L --connect-timeout 120 -m 1800 https://resource.fit2cloud.com/maxkb/ffmpeg/get-ffmpeg-linux | sh && \
69-
find /opt/maxkb-app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \
68+
RUN find /opt/maxkb-app -mindepth 1 -not -name 'sandbox' -exec chmod 700 {} + && \
7069
useradd --no-create-home --home /opt/maxkb-app/sandbox sandbox -g root && \
7170
chown -R sandbox:root /opt/maxkb-app/sandbox && \
7271
chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/17/bin/* && \

installer/Dockerfile-base

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

2930
ENV PGDATA=/opt/maxkb/data/postgresql/pgdata \
3031
POSTGRES_USER=root \

0 commit comments

Comments
 (0)