-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
35 lines (27 loc) · 955 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
31
32
33
34
35
ARG ETK_VERSION
# mydig-webservice
FROM uscisii2/etk:${ETK_VERSION}
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g serve@6.4.9
# all packages and environments are in /app
WORKDIR /app
RUN mkdir /app/mydig-webservice
# install dependencies of mydig
ADD requirements.txt /app/mydig-webservice
RUN pip install -r /app/mydig-webservice/requirements.txt
RUN git clone https://github.com/usc-isi-i2/spacy-ui.git && \
cd spacy-ui && \
git checkout tags/2.0.6
# persistent data
#VOLUME /shared_data
RUN mkdir /shared_data
EXPOSE 9879
EXPOSE 9880
EXPOSE 9881
# mydig-webservice
ADD . /app/mydig-webservice
RUN mv /app/mydig-webservice/dig3-resources /shared_data/dig3-resources
RUN ln -sf /app/mydig-webservice/ws/config_docker.py /app/mydig-webservice/ws/config.py
CMD chmod +x /app/mydig-webservice/docker_run_mydig.sh && \
/bin/bash -c "/app/mydig-webservice/docker_run_mydig.sh"