Browse Source

modify user

liuyuqi-dellpc 10 months ago
parent
commit
9637882090
2 changed files with 3 additions and 2 deletions
  1. 2 2
      Dockerfile
  2. 1 0
      README.md

+ 2 - 2
Dockerfile

@@ -14,8 +14,8 @@ RUN apt update && \
 WORKDIR /app
 RUN mkdir -p /opt/wordtohtml
 COPY convert /opt/wordtohtml/convert
-RUN adduser -u 1000 --disabled-password --gecos "" lyq && chown -R lyq /app && chown -R lyq /opt/wordtohtml
-USER lyq
+RUN adduser -u 5678 --disabled-password --gecos "" wordtohtml && chown -R wordtohtml /app && chown -R wordtohtml /opt/wordtohtml
+USER wordtohtml
 
 VOLUME [ "/app" ]
 CMD ["/opt/wordtohtml/convert"]

+ 1 - 0
README.md

@@ -20,6 +20,7 @@ github action 配置docker参数: USERNAME, PASSWORD, REGISTRY, GITHUB_RUN_NUM
 
 
 ```
+useradd -u 5678 wordtohtml
 
 docker pull ccr.ccs.tencentyun.com/jianboy/wordtohtml:v1.0.5