|
a |
|
b/docker/Dockerfile |
|
|
1 |
FROM ubuntu:18.04 |
|
|
2 |
ENV SHELL=/bin/bash |
|
|
3 |
RUN apt-get update && apt-get install -y git curl |
|
|
4 |
RUN apt-get install -y python3-setuptools python3-dev build-essential python3-pip && apt-get clean |
|
|
5 |
RUN apt-get install -y libsm6 libxext6 libxrender-dev openslide-tools && apt-get clean |
|
|
6 |
|
|
|
7 |
RUN pip3 install cython numpy pandas jupyter |
|
|
8 |
#RUN pip3 install git+https://github.com/DSLituiev/slideslicer |
|
|
9 |
ARG CACHEBUST=2 |
|
|
10 |
RUN git clone https://github.com/dslituiev/slideslicer |
|
|
11 |
RUN cd slideslicer/ && pip3 install . |
|
|
12 |
|
|
|
13 |
### DOWNLOAD FILES |
|
|
14 |
RUN mkdir data |
|
|
15 |
|
|
|
16 |
COPY 14112.* data/ |
|
|
17 |
#RUN fileid="1-s87PeyZY2C6ZejCyn4Cy0iYEkTeEFrP" &&\ |
|
|
18 |
# filename=data/14112.svs &&\ |
|
|
19 |
# curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null &&\ |
|
|
20 |
# curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} &&\ |
|
|
21 |
# rm cookie |
|
|
22 |
# |
|
|
23 |
#RUN fileid="1JRBfyzeyMdg0WTc2McC_wOiYrXhi4iRx" &&\ |
|
|
24 |
# filename=data/14112.xml &&\ |
|
|
25 |
# curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null && \ |
|
|
26 |
# curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} &&\ |
|
|
27 |
# rm cookie |
|
|
28 |
COPY resnet50_mouse_gloms_scale4.h5 data/ |
|
|
29 |
|
|
|
30 |
RUN ln -s /data slideslicer |
|
|
31 |
RUN pip3 install scikit-learn tensorflow keras |
|
|
32 |
CMD mkdir -p slideslicer/notebooks |
|
|
33 |
|
|
|
34 |
CMD cd slideslicer/notebooks && jupyter-notebook --port 8899 --ip=0.0.0.0 --allow-root |
|
|
35 |
|