parent
3c56da0e8d
commit
bfc206c41a
@ -1,8 +1,10 @@
|
|||||||
FROM requarks/wiki:latest
|
FROM requarks/wiki:latest
|
||||||
|
|
||||||
|
USER root
|
||||||
# 添加非root用户 'work'
|
# 添加非root用户 'work'
|
||||||
RUN adduser --disabled-password --gecos '' 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
|
USER work
|
||||||
@ -2,7 +2,8 @@ version: "3"
|
|||||||
services:
|
services:
|
||||||
docker-ui:
|
docker-ui:
|
||||||
hostname: wiki.flyaha.top
|
hostname: wiki.flyaha.top
|
||||||
image: requarks/wiki:latest
|
# image: requarks/wiki:latest
|
||||||
|
build: .
|
||||||
container_name: wiki
|
container_name: wiki
|
||||||
ports:
|
ports:
|
||||||
- "8002:3000"
|
- "8002:3000"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user