fix: Dockerfile useradd
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2024-08-15 17:57:14 +08:00
parent 43a060ffa2
commit 87c17deb29

View File

@ -18,7 +18,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 sandbox && mkdir /opt/maxkb/app/sandbox && chown sandbox:sandbox /opt/maxkb/app/sandbox && chmod 700 /opt/maxkb/app/sandbox
useradd -m sandbox && mkdir /opt/maxkb/app/sandbox && chown sandbox:sandbox /opt/maxkb/app/sandbox && chmod 700 /opt/maxkb/app/sandbox
COPY --from=web-build ui /opt/maxkb/app/ui
WORKDIR /opt/maxkb/app