-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (50 loc) · 2.11 KB
/
Dockerfile
File metadata and controls
68 lines (50 loc) · 2.11 KB
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
58
59
60
61
62
63
64
65
66
67
FROM ubuntu:noble as base
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y supervisor libgtk-3-dev wget apt-utils nginx
RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release software-properties-common cron unzip zip
RUN apt-get autoclean -y && apt-get autoremove -y && apt-get clean -y
ENV CONDA_DIR /opt/conda
RUN wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh"
RUN bash Miniforge3-Linux-x86_64.sh -b -p "${CONDA_DIR}"
ENV PATH=$CONDA_DIR/bin:$PATH
RUN chmod +x "${CONDA_DIR}/etc/profile.d/conda.sh"
RUN "${CONDA_DIR}/etc/profile.d/conda.sh"
RUN chmod +x "${CONDA_DIR}/etc/profile.d/mamba.sh"
RUN "${CONDA_DIR}/etc/profile.d/mamba.sh"
RUN conda init bash
RUN mamba update -n base -c defaults mamba conda
RUN mamba install -y python=3.10
RUN mamba update -y --all
RUN pip install pip==23
RUN pip install --upgrade pip requests pyopenssl
RUN chmod 777 -R /opt/conda
FROM base
WORKDIR /usr/src/graphsimviz/
RUN mamba install conda python=3.10
RUN pip install --upgrade pip
RUN mamba install -c conda-forge -y graph-tool==2.57
RUN mamba install -c conda-forge -y pandas scipy numpy seaborn networkx progress
RUN pip install psycopg2-binary poetry poetry-plugin-export
WORKDIR /usr/src/graphsimviz/
COPY pyproject.toml poetry.lock ./
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN rm -rf networks
WORKDIR /usr/src/data/
RUN mv /usr/src/graphsimviz/data/download_files.sh .
RUN rm -rf /usr/src/graphsimviz/data
RUN ./download_files.sh
WORKDIR /usr/src/
RUN wget -q https://cloud.uni-hamburg.de/public.php/dav/files/Rw3McfsN7eSLHfG/?accept=zip -O graphs.zip
RUN unzip -q graphs.zip
RUN rm graphs.zip
WORKDIR /usr/src/graphs/disease_disease
WORKDIR /usr/src/graphsimviz/
COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 8000