diff options
Diffstat (limited to 'containers/compiler')
-rw-r--r-- | containers/compiler/Dockerfile | 5 | ||||
-rw-r--r-- | containers/compiler/execute.sh | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/containers/compiler/Dockerfile b/containers/compiler/Dockerfile new file mode 100644 index 0000000..6849c8f --- /dev/null +++ b/containers/compiler/Dockerfile @@ -0,0 +1,5 @@ +FROM eclipse-temurin:23-jdk +COPY --chmod=700 ./execute.sh /execute.sh +RUN mkdir -p /opt/src +WORKDIR /opt/src +ENTRYPOINT ["/execute.sh"] diff --git a/containers/compiler/execute.sh b/containers/compiler/execute.sh new file mode 100644 index 0000000..6831a8b --- /dev/null +++ b/containers/compiler/execute.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +EXEC_DIR=/tmp/exec + +timeout 60 sh -c "javac -Xlint:deprecation '$APPLICATION_NAME.java' -d '$EXEC_DIR' > /dev/null" |