generated from Neubias-WG5/W_Template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (27 loc) · 1.37 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
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 keras
RUN pip install tensorflow
RUN git clone https://github.com/carpenterlab/2019_caicedo_cytometryA.git
RUN mkdir /app && mkdir /app/utils
RUN cp /2019_caicedo_cytometryA/unet4nuclei/utils/* /app/utils/
ADD model_builder.py /app/utils/model_builder.py
ADD unet_weights.h5 /app/weights.h5
RUN chmod 444 /app/weights.h5
ADD unet_utils.py /app/unet_utils.py
ADD wrapper.py /app/wrapper.py
ENTRYPOINT ["python3.6","/app/wrapper.py"]