Dockerfile 901 Bytes
Newer Older
Bertrand Goupil's avatar
Bertrand Goupil committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
FROM frolvlad/alpine-oraclejdk8:slim

MAINTAINER Bertrand Goupil (bertrand.goupil@afp.com)
RUN apk update && \
	apk add --no-cache \
	libstdc++

VOLUME /tmp 
VOLUME /configuration
VOLUME /configuration/lib
VOLUME /configuration/resources
VOLUME /default

COPY resources /default/resources
COPY lib/maltparser /default/lib/maltparser
COPY lib/wapiti_java /default/lib/wapiti_java
COPY lib/wapiti_models /default/lib/wapiti_models

ADD limsiSourceExtractor.jar limsiSourceExtractor.jar
EXPOSE 8080

RUN sh -c 'touch /limsiSourceExtractor.jar'
23 24 25
#ENV JAVA_OPTS="-Dspring.config.location=/configuration/"
#ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Dspring.config.location=/configuration/ -Djava.security.egd=file:/dev/./urandom -jar /limsiSourceExtractor.jar" ]
ENTRYPOINT  exec java $JAVA_OPTS -Dspring.config.location=/configuration/ -Djava.security.egd=file:/dev/./urandom -jar /limsiSourceExtractor.jar