修改用户
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
yaha 2024-02-06 10:15:27 +08:00
parent 3c56da0e8d
commit bfc206c41a
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,10 @@
FROM requarks/wiki:latest
USER root
# 添加非root用户 'work'
RUN adduser --disabled-password --gecos '' work
RUN chown -R work:work /wiki
RUN chown -R work:work /wiki && \
chown -R work:work /logs
# 切换到新用户
USER work

View File

@ -2,7 +2,8 @@ version: "3"
services:
docker-ui:
hostname: wiki.flyaha.top
image: requarks/wiki:latest
# image: requarks/wiki:latest
build: .
container_name: wiki
ports:
- "8002:3000"