Skip to content

Commit

Permalink
fix: 修复用户无法创建问题
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Aug 15, 2024
1 parent 5681d2d commit 8aacf5f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions installer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ RUN apt-get update && \

COPY . /opt/maxkb/app
RUN mkdir -p /opt/maxkb/app /opt/maxkb/model /opt/maxkb/conf && \
rm -rf /opt/maxkb/app/ui && \
useradd -m sandbox && mkdir /opt/maxkb/app/sandbox && chown sandbox:sandbox /opt/maxkb/app/sandbox && chmod 700 /opt/maxkb/app/sandbox
rm -rf /opt/maxkb/app/ui

COPY --from=web-build ui /opt/maxkb/app/ui
WORKDIR /opt/maxkb/app
Expand Down Expand Up @@ -59,7 +58,11 @@ COPY --from=vector-model /opt/maxkb/app/model /opt/maxkb/model
RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
cp -r /opt/maxkb/model/base/hub /opt/maxkb/model/tokenizer && \
cp -f /opt/maxkb/app/installer/run-maxkb.sh /usr/bin/run-maxkb.sh && \
cp -f /opt/maxkb/app/installer/init.sql /docker-entrypoint-initdb.d
cp -f /opt/maxkb/app/installer/init.sql /docker-entrypoint-initdb.d && \
mkdir /opt/maxkb/app/sandbox && \
useradd --no-create-home --home /opt/maxkb/app/sandbox --shell /bin/bash sandbox && \
chown sandbox:sandbox /opt/maxkb/app/sandbox


EXPOSE 8080

Expand Down

0 comments on commit 8aacf5f

Please sign in to comment.