Add image for running erlang scripts
This commit is contained in:
parent
56c58cad90
commit
2fe7b581a7
2 changed files with 7 additions and 0 deletions
4
languages/erlang/Dockerfile
Normal file
4
languages/erlang/Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
FROM erlang:alpine
|
||||||
|
LABEL author="1Computer1"
|
||||||
|
|
||||||
|
COPY run.sh /var/run/
|
3
languages/erlang/run.sh
Normal file
3
languages/erlang/run.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
echo "%% -*- erlang -*-" > program.erl
|
||||||
|
printf %s "$1" >> program.erl
|
||||||
|
escript program.erl || true
|
Loading…
Reference in a new issue