parent
3c56da0e8d
commit
bfc206c41a
@ -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
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user