Jelajahi Sumber

更新 'Dockerfile'

stone 3 tahun lalu
induk
melakukan
76ed2aa548
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      Dockerfile

+ 3 - 2
Dockerfile

@@ -7,11 +7,12 @@ RUN rm -rf /data/project/*  \
 	&& rm -rf /app/wapage \
 	&& rm -f /etc/supervisord.conf \
 	&& rm -f /usr/bin/entrypoint.sh
-ADD http://10.26.22.185:9000/psop/soft/ads.war /data/project/ads.war
+ADD http://10.26.22.185:9000/psop/soft/ads.tar.gz /data/project/ads.tar.gz
 COPY supervisord.conf /etc/supervisord.conf
 COPY resin.conf /app/resin-pro-3.1.6/conf/resin.conf
 COPY entrypoint.sh /usr/bin/entrypoint.sh
-RUN chmod +x /usr/bin/entrypoint.sh
+RUN chmod +x /usr/bin/entrypoint.sh \
+	&& tar -zxf /data/project/ads.tar.gz -C /data/project/
 
 #start resin
 CMD ["supervisord"]