File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 11FROM  xfan1024/openeuler:23.03-light
22RUN  mkdir /tools
33WORKDIR  /tools
4- 
54#  安装依赖
6- RUN  yum -y install util-linux  dos2unix
7- 
5+ RUN  yum -y install util-linux  dos2unix gcc make unzip wget\
6+     && wget https://github.com/ncopa/su-exec/archive/master.zip\
7+     && unzip master.zip\
8+     && cd su-exec-master\
9+     && make\
10+     && cp su-exec /usr/local/bin/
11+   
812RUN  yum -y install postgresql postgresql-server \
913    &&mkdir /data\
1014    &&chown -R postgres /data\
11-     &&chown -R postgres /tools
15+     &&chown -R postgres /tools   
1216
1317ENV  TZ=Asia/Shanghai
1418
@@ -19,9 +23,11 @@ COPY docker-entrypoint.sh /usr/local/bin
1923RUN  dos2unix -k /usr/local/bin/update-pg-password.sh /usr/local/bin/docker-entrypoint.sh /docker-entrypoint-initdb.d/10_eulixspace.sh
2024
2125RUN  chmod +x /usr/local/bin/docker-entrypoint.sh
22- RUN  chmod +x  /usr/local/bin/update-pg-password.sh
26+ RUN  chmod 777  /usr/local/bin/update-pg-password.sh
2327RUN  chmod +x /docker-entrypoint-initdb.d/10_eulixspace.sh
28+ RUN  chmod +x /usr/local/bin/su-exec
2429
30+ RUN  chown -R postgres /usr/local/bin/docker-entrypoint.sh
2531ENTRYPOINT  ["docker-entrypoint.sh" ]
2632
2733STOPSIGNAL  SIGINT
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments