add Nim and R support

This commit is contained in:
1computer1 2020-06-17 01:32:51 -04:00
parent 4d9dff0b9a
commit d1720c42e4
4 changed files with 12 additions and 0 deletions

4
languages/nim/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM nimlang/nim:alpine
LABEL author="1Computer1"
COPY run.sh /var/run/

2
languages/nim/run.sh Normal file
View File

@ -0,0 +1,2 @@
cat > program.nim
nim compile --run --colors=off --memTracker=off --verbosity=0 --hints=off --nimcache:/tmp/"$CODEDIR"/cache ./program.nim || true

4
languages/r/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM r-base
LABEL author="1Computer1"
COPY run.sh /var/run/

2
languages/r/run.sh Normal file
View File

@ -0,0 +1,2 @@
cat > program.R
Rscript program.R || true