forked from AllenInstitute/asap-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (21 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM fcollman/render-python-client:master
MAINTAINER Forrest Collman ([email protected])
WORKDIR /shared/render-modules
COPY . /shared/render-modules
RUN apt-get update && apt-get install -y libxcomposite-dev gcc && rm -rf /var/lib/apt/lists/*
SHELL ["/bin/bash", "-c"]
RUN conda create -n render-modules --clone root && source activate render-modules && conda install -y -c conda-forge rtree
RUN source activate render-modules &&\
conda install -y pip &&\
conda install -y -c conda-forge fast-histogram &&\
pip uninstall -y opencv-python opencv-contrib-python &&\
pip install -r requirements.txt &&\
# there is a gotcha here, that em_stitch could possibly not work
# with the render-modules opencv contrib version
# had tried to fix in em_stitch setup.py
# but pip install does not respect that somehow
python setup.py install &&\
echo $(cat requirements.txt | grep opencv) > opencv_requirements.txt &&\
pip uninstall -y opencv-python opencv-contrib-python &&\
pip install -r opencv_requirements.txt
ENTRYPOINT ["/bin/bash","/shared/render-modules/entrypoint.sh"]