Browse Source

需求:调整镜像运行的用户名

lijie 2 years ago
parent
commit
bbd9bee485
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docker/dockerfiles/dmp-rwd/Dockerfile

+ 2 - 0
docker/dockerfiles/dmp-rwd/Dockerfile

@@ -28,6 +28,8 @@ COPY config/* $WORKER_HOME/config/
 WORKDIR $WORKER_HOME
 RUN groupadd docker
 RUN useradd -d $WORKER_HOME -g docker -m docker
+RUN chmod 755 entrypoint.sh
+RUN chown -R docker:docker *
 #查看上述复制的文件,是否复制成功
 RUN ls
 USER docker