txlyre hace 1 año
padre
commit
6546b95377
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  1. 7 0
      langs/kotlin/Dockerfile
  2. 5 0
      langs/kotlin/run.sh

+ 7 - 0
langs/kotlin/Dockerfile

@@ -0,0 +1,7 @@
+RUN apt-get install wget unzip -y
+RUN apt-get install default-jdk -y
+RUN wget -c https://github.com/JetBrains/kotlin/releases/download/v1.9.23/kotlin-compiler-1.9.23.zip
+RUN unzip kotlin-compiler-1.9.23.zip
+RUN mv kotlinc/bin/* /usr/local/bin/
+RUN rm -rf kotlinc
+RUN rm kotlin-compiler-1.9.23.zip

+ 5 - 0
langs/kotlin/run.sh

@@ -0,0 +1,5 @@
+IN="$(mktemp --suffix .kts)"
+
+cat > "$IN"
+
+kotlinc -script "$IN"