forked from rodekruis/ada-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
57 lines (46 loc) · 1.57 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
46
47
48
49
50
51
52
53
54
55
56
57
FROM nvidia/cuda:12.2.0-base-ubuntu22.04
RUN apt-get update && \
apt-get install -y python3 python3-pip && \
apt-get install -y python-is-python3
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
RUN deps='build-essential curl gdal-bin libgdal-dev kmod wget apache2' && \
apt-get update && \
apt-get install -y $deps
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata
RUN apt-get install -y libopencv-dev python3-opencv
RUN pip install --upgrade pip && \
pip install GDAL==$(gdal-config --version)
# install conda
ENV HOME="/root"
ENV PATH="$HOME/conda/bin:$PATH"
RUN mkdir $HOME/.conda &&\
curl -sL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh &&\
chmod 0755 $HOME/miniconda.sh &&\
/bin/bash $HOME/miniconda.sh -b -p $HOME/conda &&\
rm $HOME/miniconda.sh &&\
$HOME/conda/bin/conda update -n base -c defaults conda &&\
conda init
# install ada_tools in env base
WORKDIR /ada_tools
ADD ada_tools .
RUN pip install .
# install abd in env abd
RUN conda create -y -n abd python=3.7
SHELL ["conda", "run", "-n", "abd", "/bin/bash", "-c"]
WORKDIR /abd
ADD abd_model .
RUN pip install .
# clone caladrius repo
WORKDIR /
RUN apt-get update && \
apt-get install -y --no-install-recommends git curl vim less
RUN git clone --branch ada-0.1 https://github.com/rodekruis/caladrius.git
# install caladrius in env cal
WORKDIR /caladrius
RUN /bin/bash caladrius_install.sh
WORKDIR /
# go back to env base
SHELL ["conda", "run", "-n", "base", "/bin/bash", "-c"]
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8