Przeglądaj źródła

更新 'Dockerfile'

robert 3 lat temu
rodzic
commit
952851630b
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      Dockerfile

+ 2 - 3
Dockerfile

@@ -11,7 +11,6 @@ ENV RESIN_HOME /app/soft/resin-4.0.65
 
 RUN yum install -y wget rsync epel-release \
     && useradd book \
-    && yum install -y supervisor \
     && mkdir -p /usr/java  /app/soft \
     && curl -O http://10.26.22.185:9000/psop/soft/jdk1.8.0_271.tar.gz \
     && curl -O http://10.26.22.185:9000/book/api-rs/resin-4.0.65-relase.tar.gz \
@@ -24,7 +23,7 @@ RUN yum install -y wget rsync epel-release \
 COPY resin.properties /app/soft/resin-4.0.65/conf/resin.properties
 COPY entrypoint.sh /usr/bin/entrypoint.sh
 COPY release /etc/release 
-COPY supervisord.conf /etc/supervisord.conf
+#COPY supervisord.conf /etc/supervisord.conf
 
 RUN export RELEASE=`head -n 1 /etc/release` \
     && rsync -avz $RELEASE/ROOT.war /tmp/ROOT.war \
@@ -32,4 +31,4 @@ RUN export RELEASE=`head -n 1 /etc/release` \
 
 #start resin
 ENTRYPOINT ["entrypoint.sh"]
-CMD ["supervisord"]
+CMD ["/app/soft/resin-4.0.65/bin/resin.sh console"]