Add Clojure, Elixir, Java, Ruby, Rust
This commit is contained in:
parent
36bd4d33c3
commit
47f5a78799
16 changed files with 94 additions and 0 deletions
5
docker/clojure/Dockerfile
Normal file
5
docker/clojure/Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM clojure:tools-deps-alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
COPY run.sh /var/run/
|
||||
WORKDIR /var/ws
|
2
docker/clojure/run.sh
Normal file
2
docker/clojure/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
echo "$1" > program.clj
|
||||
clojure program.clj
|
5
docker/elixir/Dockerfile
Normal file
5
docker/elixir/Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM elixir:alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
COPY run.sh /var/run/
|
||||
WORKDIR /var/ws
|
2
docker/elixir/run.sh
Normal file
2
docker/elixir/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
echo "$1" > program.exs
|
||||
elixir program.exs
|
5
docker/java/Dockerfile
Normal file
5
docker/java/Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM openjdk:13-alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
COPY run.sh /var/run/
|
||||
WORKDIR /var/ws
|
2
docker/java/run.sh
Normal file
2
docker/java/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
echo "$1" > Main.java
|
||||
javac Main.java && java Main
|
5
docker/ruby/Dockerfile
Normal file
5
docker/ruby/Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM ruby:alpine
|
||||
LABEL author="1Computer1"
|
||||
|
||||
COPY run.sh /var/run/
|
||||
WORKDIR /var/ws
|
2
docker/ruby/run.sh
Normal file
2
docker/ruby/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
echo "$1" > program.rb
|
||||
ruby program.rb
|
5
docker/rust/Dockerfile
Normal file
5
docker/rust/Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM rust:slim
|
||||
LABEL author="1Computer1"
|
||||
|
||||
COPY run.sh /var/run/
|
||||
WORKDIR /var/ws
|
2
docker/rust/run.sh
Normal file
2
docker/rust/run.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
echo "$1" > program.rs
|
||||
rustc -C opt-level=0 --color never program.rs && ./program
|
Loading…
Add table
Add a link
Reference in a new issue