Sfoglia il codice sorgente

Don't assume the JRE self-extracter is executable

Rob Austein 5 anni fa
parent
commit
3c0b1a0922
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -31,7 +31,7 @@ RUN set -x; \
 RUN set -x; \
     mkdir -p /usr/local/java && \
     cd /usr/local/java && \
-    /root/jre-*.bin && \
+    /bin/sh /root/jre-*.bin && \
     echo >>/etc/profile export JRE_HOME=`echo /usr/local/java/jre*` && \
     echo >>/etc/profile export 'PATH="$PATH:$JRE_HOME/bin"' && \
     update-alternatives --install /usr/bin/java   java   /usr/local/java/jre*/bin/java   1 && \