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) MAINTAINER Duc Cao (tien-duc.cao@inria.fr)
RUN apk add maven RUN apk add maven
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
<includes> <includes>
<include>lib/**/*</include> <include>lib/**/*</include>
<include>resources/**/*</include> <include>resources/**/*</include>
<include>wapiti-1.5.0/**/*</include>
</includes> </includes>
<excludes> <excludes>
<exclude>lib/jar/**/*</exclude> <exclude>lib/jar/**/*</exclude>
......
FROM frolvlad/alpine-oraclejdk8:slim FROM frolvlad/alpine-java:jdk8-slim
MAINTAINER Bertrand Goupil (bertrand.goupil@afp.com) MAINTAINER Bertrand Goupil (bertrand.goupil@afp.com)
RUN apk update && \ RUN apk update
apk add --no-cache \ RUN apk add --no-cache gcc musl-dev
libstdc++ RUN apk add make
VOLUME /tmp VOLUME /tmp
VOLUME /configuration VOLUME /configuration
...@@ -15,6 +15,9 @@ COPY resources /default/resources ...@@ -15,6 +15,9 @@ COPY resources /default/resources
COPY lib/maltparser /default/lib/maltparser COPY lib/maltparser /default/lib/maltparser
COPY lib/wapiti_java /default/lib/wapiti_java COPY lib/wapiti_java /default/lib/wapiti_java
COPY lib/wapiti_models /default/lib/wapiti_models 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 ADD limsiSourceExtractor.jar limsiSourceExtractor.jar
EXPOSE 8080 EXPOSE 8080
...@@ -22,4 +25,4 @@ EXPOSE 8080 ...@@ -22,4 +25,4 @@ EXPOSE 8080
RUN sh -c 'touch /limsiSourceExtractor.jar' RUN sh -c 'touch /limsiSourceExtractor.jar'
#ENV JAVA_OPTS="-Dspring.config.location=/configuration/" #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 [ "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 ENTRYPOINT exec java $JAVA_OPTS -Dspring.config.location=/configuration/ -Djava.security.egd=file:/dev/./urandom -jar /limsiSourceExtractor.jar
\ No newline at end of file
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