Skip to content

Commit fa65ca4

Browse files
André DietrichAndré Dietrich
authored andcommitted
fix: kotlin, cobol, io and zig
1 parent 65d4494 commit fa65ca4

1 file changed

Lines changed: 20 additions & 10 deletions

File tree

Dockerfile

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ RUN apt-get install -y --no-install-recommends \
101101
valac \
102102
# Standard ML
103103
smlnj \
104-
# Kotlin
105-
kotlin \
106104
# PHP
107105
php \
108106
# NodeJS
@@ -150,11 +148,11 @@ RUN curl -fsSL https://install.julialang.org | sh -s -- -y \
150148
&& ln -s /root/.juliaup/bin/julia /usr/local/bin/julia
151149

152150
### Zig
153-
RUN curl -fLO https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz \
154-
&& tar -xf zig-x86_64-linux-0.16.0.tar.xz \
155-
&& rm zig-x86_64-linux-0.16.0.tar.xz \
156-
&& mv zig-x86_64-linux-0.16.0/ /opt/ \
157-
&& ln -s /opt/zig-x86_64-linux-0.16.0/zig /usr/local/bin/zig
151+
RUN curl -fLO https://ziglang.org/download/0.14.0/zig-linux-x86_64-0.14.0.tar.xz \
152+
&& tar -xf zig-linux-x86_64-0.14.0.tar.xz \
153+
&& rm zig-linux-x86_64-0.14.0.tar.xz \
154+
&& mv zig-linux-x86_64-0.14.0/ /opt/ \
155+
&& ln -s /opt/zig-linux-x86_64-0.14.0/zig /usr/local/bin/zig
158156

159157
### Nim
160158
RUN curl -O https://nim-lang.org/choosenim/init.sh -sSf \
@@ -215,8 +213,8 @@ RUN git clone --recurse-submodules --branch native https://github.com/IoLanguage
215213
cd io && \
216214
mkdir build && \
217215
cd build && \
218-
cmake .. && \
219-
make && \
216+
cmake .. -DCMAKE_BUILD_TYPE=Release && \
217+
make -j"$(nproc)" && \
220218
make install && \
221219
cd ../.. && \
222220
rm -rf io
@@ -226,7 +224,7 @@ RUN npm install --global solc && \
226224
npm cache clean --force
227225

228226
# Q# (Quantum)
229-
RUN dotnet tool install -g Microsoft.Quantum.IQSharp
227+
#RUN dotnet tool install -g Microsoft.Quantum.IQSharp
230228

231229
# SelectScript
232230
RUN curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein \
@@ -250,6 +248,17 @@ RUN apt-get update && \
250248
apt-get clean && \
251249
rm -rf /var/lib/apt/lists/*
252250

251+
### Kotlin (modern release, compatible with JDK 25)
252+
RUN KOTLIN_VERSION=$(curl -s https://api.github.com/repos/JetBrains/kotlin/releases/latest \
253+
| python3 -c "import sys,json; print(json.load(sys.stdin)['tag_name'].lstrip('v'))") \
254+
&& curl -L "https://github.com/JetBrains/kotlin/releases/download/v${KOTLIN_VERSION}/kotlin-compiler-${KOTLIN_VERSION}.zip" \
255+
-o /tmp/kotlin.zip \
256+
&& python3 -c "import zipfile; zipfile.ZipFile('/tmp/kotlin.zip').extractall('/opt/')" \
257+
&& rm /tmp/kotlin.zip \
258+
&& chmod +x /opt/kotlinc/bin/* \
259+
&& ln -sf /opt/kotlinc/bin/kotlinc /usr/local/bin/kotlinc \
260+
&& ln -sf /opt/kotlinc/bin/kotlin /usr/local/bin/kotlin
261+
253262
#############################################################################################
254263
COPY . /coderunner
255264
WORKDIR "/coderunner"
@@ -299,4 +308,5 @@ RUN printf '#!/bin/bash\n\
299308

300309
EXPOSE 4000
301310

311+
##ENTRYPOINT ["python3","-m","server","--host","0.0.0.0","--port","4000"]
302312
CMD python3 -m server --host 0.0.0.0 --port $PORT

0 commit comments

Comments
 (0)