forked from dirkweissenborn/ctakes-server
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (23 loc) · 975 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Official Maven with JDK8
FROM maven:3.5.4-jdk-8-alpine
RUN apk update && apk add unzip
## Download all ctakes files
ADD https://dlcdn.apache.org//ctakes/ctakes-4.0.0.1/apache-ctakes-4.0.0.1-bin.tar.gz /
ADD https://iweb.dl.sourceforge.net/project/ctakesresources/ctakes-resources-4.0-bin.zip /
RUN tar -xvzf apache-ctakes-4.0.0.1-bin.tar.gz && \
ln -s /apache-ctakes-4.0.0.1 /apache-ctakes && \
unzip ctakes-resources-4.0-bin.zip && \
cp -a resources /apache-ctakes/resources && \
mkdir sno_rx_16ab
ADD https://phoenixnap.dl.sourceforge.net/project/ctakesresources/sno_rx_16ab.zip /sno_rx_16ab
RUN unzip sno_rx_16ab/sno_rx_16ab.zip && \
mv sno_rx_16ab /apache-ctakes/resources/org/apache/ctakes/dictionary && \
rm ctakes-resources-4.0-bin.zip && \
rm -rf sno_rx_16ab
WORKDIR /app
RUN mkdir src
ADD src /app/src
ADD pom.xml /app
RUN ln -s ../apache-ctakes/resources resources && \
ln -s ../apache-ctakes/desc desc && \
mvn package