Commit 5d67c91b authored by Duc Cao's avatar Duc Cao

Update Dockerfile

parent 78259c13
FROM frolvlad/alpine-oraclejdk8:slim
FROM frolvlad/alpine-java:jdk8-slim
MAINTAINER Duc Cao (tien-duc.cao@inria.fr)
RUN apk add maven
......
......@@ -65,6 +65,7 @@
<includes>
<include>lib/**/*</include>
<include>resources/**/*</include>
<include>wapiti-1.5.0/**/*</include>
</includes>
<excludes>
<exclude>lib/jar/**/*</exclude>
......
FROM frolvlad/alpine-oraclejdk8:slim
FROM frolvlad/alpine-java:jdk8-slim
MAINTAINER Bertrand Goupil (bertrand.goupil@afp.com)
RUN apk update && \
apk add --no-cache \
libstdc++
RUN apk update
RUN apk add --no-cache gcc musl-dev
RUN apk add make
VOLUME /tmp
VOLUME /configuration
......@@ -15,6 +15,9 @@ 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
COPY wapiti-1.5.0 /default/wapiti-1.5.0
RUN cd /default/wapiti-1.5.0 && make wapiti && cp wapiti /default/lib
ADD limsiSourceExtractor.jar limsiSourceExtractor.jar
EXPOSE 8080
......@@ -22,4 +25,4 @@ EXPOSE 8080
RUN sh -c 'touch /limsiSourceExtractor.jar'
#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
\ No newline at end of file
ENTRYPOINT exec java $JAVA_OPTS -Dspring.config.location=/configuration/ -Djava.security.egd=file:/dev/./urandom -jar /limsiSourceExtractor.jar
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment