From 2fe7b581a73ea1dec550bdeec8c63fb07df19c72 Mon Sep 17 00:00:00 2001 From: vzwGrey Date: Tue, 1 Oct 2019 13:18:22 +0200 Subject: [PATCH] Add image for running erlang scripts --- languages/erlang/Dockerfile | 4 ++++ languages/erlang/run.sh | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 languages/erlang/Dockerfile create mode 100644 languages/erlang/run.sh diff --git a/languages/erlang/Dockerfile b/languages/erlang/Dockerfile new file mode 100644 index 0000000..c591cea --- /dev/null +++ b/languages/erlang/Dockerfile @@ -0,0 +1,4 @@ +FROM erlang:alpine +LABEL author="1Computer1" + +COPY run.sh /var/run/ diff --git a/languages/erlang/run.sh b/languages/erlang/run.sh new file mode 100644 index 0000000..20c4beb --- /dev/null +++ b/languages/erlang/run.sh @@ -0,0 +1,3 @@ +echo "%% -*- erlang -*-" > program.erl +printf %s "$1" >> program.erl +escript program.erl || true