We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a585b9e commit 776c7b0Copy full SHA for 776c7b0
app/Dockerfile
@@ -0,0 +1,12 @@
1
+FROM java:alpine
2
+
3
+MAINTAINER Jay MOULIN <jaymoulin@gmail.com>
4
5
+RUN apk add wget unzip --update --virtual .build-deps && \
6
+wget "https://dl.google.com/closure-compiler/compiler-latest.zip" && \
7
+unzip "compiler-latest.zip" && \
8
+mv *.jar /bin/compiler.jar && \
9
+apk del wget --purge .build-deps
10
+COPY ./entrypoint.sh /bin/entrypoint
11
+ENTRYPOINT ["/bin/entrypoint"]
12
+CMD ["java", "-jar", "/bin/compiler.jar"]
app/entrypoint.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+if [ "${1#-}" != "$1" ]; then
+ set -- java -jar /bin/compiler.jar "$@"
+fi
+exec "$@"
0 commit comments