forked from michel-kraemer/citeproc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (13 loc) · 658 Bytes
/
Dockerfile
File metadata and controls
15 lines (13 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM openjdk:8-jre-alpine
MAINTAINER Michel Kraemer <michel@undercouch.de>
RUN CITEPROC_JAVA_VERSION=1.0.1 \
&& CITEPROC_JAVA_ARCHIVENAME=citeproc-java-tool-$CITEPROC_JAVA_VERSION \
&& apk --no-cache add wget bash \
&& wget https://github.com/michel-kraemer/citeproc-java/releases/download/$CITEPROC_JAVA_VERSION/$CITEPROC_JAVA_ARCHIVENAME.zip \
&& unzip $CITEPROC_JAVA_ARCHIVENAME.zip \
&& rm $CITEPROC_JAVA_ARCHIVENAME.zip \
&& apk del wget \
&& echo "#!/bin/bash" > entrypoint.sh \
&& echo "$CITEPROC_JAVA_ARCHIVENAME/bin/citeproc-java \$@" >> entrypoint.sh \
&& chmod +x entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]