Fix conda installation for ambertools and pymol
Browse files- Dockerfile +15 -5
Dockerfile
CHANGED
|
@@ -10,6 +10,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
make \
|
| 11 |
libffi-dev \
|
| 12 |
libssl-dev \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
# Install conda
|
|
@@ -19,11 +25,15 @@ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh &
|
|
| 19 |
|
| 20 |
ENV PATH="/opt/conda/bin:${PATH}"
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
RUN conda
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# Install Python packages via pip
|
| 29 |
RUN pip install --no-cache-dir \
|
|
|
|
| 10 |
make \
|
| 11 |
libffi-dev \
|
| 12 |
libssl-dev \
|
| 13 |
+
libgl1-mesa-glx \
|
| 14 |
+
libglib2.0-0 \
|
| 15 |
+
libxext6 \
|
| 16 |
+
libsm6 \
|
| 17 |
+
libxrender1 \
|
| 18 |
+
libgomp1 \
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
# Install conda
|
|
|
|
| 25 |
|
| 26 |
ENV PATH="/opt/conda/bin:${PATH}"
|
| 27 |
|
| 28 |
+
# Update conda and install packages with retry logic
|
| 29 |
+
RUN conda update -n base -c defaults conda -y && \
|
| 30 |
+
conda config --add channels conda-forge && \
|
| 31 |
+
conda config --add channels bioconda && \
|
| 32 |
+
conda config --set channel_priority flexible
|
| 33 |
+
|
| 34 |
+
# Install AMBER tools and PyMOL with proper conda syntax
|
| 35 |
+
RUN conda install conda-forge::ambertools -y --timeout 300 && \
|
| 36 |
+
conda install conda-forge::pymol-open-source -y --timeout 300
|
| 37 |
|
| 38 |
# Install Python packages via pip
|
| 39 |
RUN pip install --no-cache-dir \
|