Explorar o código

Java almost sorta kinda working

Rob Austein %!s(int64=5) %!d(string=hai) anos
pai
achega
56d82f8631
Modificáronse 1 ficheiros con 12 adicións e 8 borrados
  1. 12 8
      Dockerfile

+ 12 - 8
Dockerfile

@@ -6,6 +6,7 @@ RUN apt-get --yes update && apt-get --yes install --no-install-recommends \
     bzip2 \
     fonts-droid-fallback \
     fonts-noto \
+    libasound2 \
     libdbus-glib-1-2 \
     libgtk-3-0 \
     ratpoison \
@@ -17,15 +18,18 @@ RUN apt-get --yes update && apt-get --yes install --no-install-recommends \
 COPY startup.sh ratpoisonrc waterfox*.tar.bz2 jre-*.tar.gz /
 
 RUN set -x; \
-    tar -C /usr/local -xf /waterfox*.tar.bz2 && \
-    rm -f                 /waterfox*.tar.bz2 && \
-    ln -s /usr/local/waterfox/waterfox /usr/local/bin && \
     mkdir -p /usr/local/java && \
-    tar -C /usr/local/java -xf /jre-*.tar.gz && \
-    echo >>/etc/profile JRE_HOME=`echo /usr/local/java/jre*` && \
-    echo >>/etc/profile 'PATH="$PATH:$JRE_HOME/bin"' && \
-    update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \
-    update-alternatives --set java /usr/bin/java java /usr/local/java/jre*/bin/java
+    tar -C /usr/local	   -xf	/waterfox*.tar.bz2 && \
+    rm -f			/waterfox*.tar.bz2 && \
+    tar -C /usr/local/java -xf	/jre-*.tar.gz && \
+    rm -f			/jre-*.tar.gz && \
+    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 && \
+    update-alternatives --set java                       /usr/local/java/jre*/bin/java     && \
+    update-alternatives --install /usr/bin/javaws javaws /usr/local/java/jre*/bin/javaws 1 && \
+    update-alternatives --set javaws                     /usr/local/java/jre*/bin/javaws   && \
+    ln -s /usr/local/waterfox/waterfox /usr/local/bin
 
 CMD ["/startup.sh"]