robert %!s(int64=3) %!d(string=hai) anos
pai
achega
b988d22466
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      Dockerfile

+ 4 - 2
Dockerfile

@@ -7,6 +7,8 @@ ENV TZ=Asia/Shanghai
 ENV JAVA_HOME /usr/java/jdk1.8.0_271
 ENV RESIN_HOME /app/soft/resin-4.0.65
 
+COPY entrypoint.sh /usr/bin/entrypoint.sh
+
 #install jdk8 & resin4 & flume
 
 RUN yum install -y wget rsync epel-release lsof crontabs rsyslog \
@@ -18,11 +20,11 @@ RUN yum install -y wget rsync epel-release lsof crontabs rsyslog \
     && tar -xf jdk1.8.0_271.tar.gz -C /usr/java/ \ 
     && tar -xf resin-4.0.65-relase.tar.gz -C /app/soft/ \
     && rm -f jdk1.8.0_271.tar.gz resin-4.0.65-relase.tar.gz \
-    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
+    && chmod +x /usr/bin/entrypoint.sh
 
 #COPY resin.xml /app/soft/resin-4.0.65/conf/resin.xml
 COPY resin.properties /app/soft/resin-4.0.65/conf/resin.properties
-COPY entrypoint.sh /usr/bin/entrypoint.sh
 COPY release /etc/release 
 COPY root /var/spool/cron/root
 COPY log_clear.sh /cron/root/log_clear.sh