Skip to content

Commit 776c7b0

Browse files
committed
Added compiler app docker
1 parent a585b9e commit 776c7b0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

app/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
set -e
4+
if [ "${1#-}" != "$1" ]; then
5+
set -- java -jar /bin/compiler.jar "$@"
6+
fi
7+
8+
exec "$@"

0 commit comments

Comments
 (0)