-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (32 loc) · 1.48 KB
/
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
36
37
38
39
40
41
42
43
44
45
FROM python:3.6.9-stretch
# ------------------------------------------------------------------------------
# Install Cytomine python client
RUN git clone https://github.com/cytomine-uliege/Cytomine-python-client.git && \
cd /Cytomine-python-client && git checkout tags/v2.7.3 && pip install . && \
rm -r /Cytomine-python-client
# ------------------------------------------------------------------------------
# Install Neubias-W5-Utilities (annotation exporter, compute metrics, helpers,...)
RUN apt-get update && apt-get install libgeos-dev -y && apt-get clean
RUN git clone https://github.com/Neubias-WG5/biaflows-utilities.git && \
cd /biaflows-utilities/ && git checkout tags/v0.9.1 && pip install .
# install utilities binaries
RUN chmod +x /biaflows-utilities/bin/*
RUN cp /biaflows-utilities/bin/* /usr/bin/ && \
rm -r /biaflows-utilities
# ------------------------------------------------------------------------------
RUN pip install scikit-learn joblib
RUN pip install h5py==2.9.0
RUN pip install keras==2.3.1
RUN pip install tensorflow==1.13.1
RUN git clone https://github.com/matterport/Mask_RCNN.git
RUN cd Mask_RCNN && \
pip install -r requirements.txt && \
python setup.py install
RUN pip install gdown
RUN mkdir /app && \
cd /app && \
gdown https://drive.google.com/uc?id=19EmZ57LXSArG-Z1HC8NOtrQUxGNzW3vv
RUN chmod 444 /app/weights.h5
ADD wrapper.py /app/wrapper.py
ADD maskrcnn_utils.py /app/maskrcnn_utils.py
ENTRYPOINT ["python3.6","/app/wrapper.py"]