hemantn commited on
Commit
1c8d468
·
1 Parent(s): 03e1878

Docker: use Miniforge instead of Miniconda to fix Anaconda ToS CI failures

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -14
Dockerfile CHANGED
@@ -17,31 +17,29 @@ RUN apt-get update && apt-get install -y \
17
  libgomp1 \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
- # Install conda
21
- RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
22
- bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \
23
- rm Miniconda3-latest-Linux-x86_64.sh
24
 
25
  ENV PATH="/opt/conda/bin:${PATH}"
26
 
27
- # Accept conda Terms of Service and configure channels
28
- RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
29
- conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r && \
30
- conda config --add channels conda-forge && \
31
- conda config --add channels bioconda && \
32
  conda config --set channel_priority flexible
33
 
34
  # Install mamba for faster package installation
35
  RUN conda install -n base -c conda-forge mamba -y
36
 
37
- # Install AMBER tools, PyMOL, AutoDock Vina, and Open Babel (for docking)
38
- RUN mamba install -y python=3.11 conda-forge::ambertools conda-forge::pymol-open-source \
39
- conda-forge::autodock-vina conda-forge::openbabel
 
40
 
41
  # Clean up conda/mamba cache to reduce image size
42
  RUN conda clean -afy
43
 
44
- # Install Python packages via pip (AmberFlow deps: Dockerfile minus scipy, plus meeko for docking)
45
  RUN pip install --no-cache-dir \
46
  flask==2.3.3 \
47
  flask-cors==4.0.0 \
@@ -53,7 +51,6 @@ RUN pip install --no-cache-dir \
53
  mdanalysis==2.5.0 \
54
  gunicorn==21.2.0 \
55
  requests==2.31.0 \
56
- rdkit==2023.3.1 \
57
  meeko>=0.7.0
58
 
59
  # Set working directory
 
17
  libgomp1 \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
+ # Install Miniforge (conda-forge–based; no Anaconda ToS) and configure channels
21
+ RUN wget -q https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh && \
22
+ bash Miniforge3-Linux-x86_64.sh -b -p /opt/conda && \
23
+ rm Miniforge3-Linux-x86_64.sh
24
 
25
  ENV PATH="/opt/conda/bin:${PATH}"
26
 
27
+ # Add bioconda; conda-forge is default for Miniforge. No Anaconda ToS needed.
28
+ RUN conda config --add channels bioconda && \
 
 
 
29
  conda config --set channel_priority flexible
30
 
31
  # Install mamba for faster package installation
32
  RUN conda install -n base -c conda-forge mamba -y
33
 
34
+ # Install AMBER tools, PyMOL, AutoDock Vina, Open Babel, and RDKit
35
+ RUN mamba install -y python=3.11 \
36
+ conda-forge::ambertools conda-forge::pymol-open-source \
37
+ conda-forge::autodock-vina conda-forge::openbabel conda-forge::rdkit
38
 
39
  # Clean up conda/mamba cache to reduce image size
40
  RUN conda clean -afy
41
 
42
+ # Install Python packages via pip (meeko has no conda package; others for version pinning)
43
  RUN pip install --no-cache-dir \
44
  flask==2.3.3 \
45
  flask-cors==4.0.0 \
 
51
  mdanalysis==2.5.0 \
52
  gunicorn==21.2.0 \
53
  requests==2.31.0 \
 
54
  meeko>=0.7.0
55
 
56
  # Set working directory