-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (30 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
42 lines (30 loc) · 1.34 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
# MatchTope Dockerfile
## Author: BragatteMAS
## Last Update: 2023-11
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
# Installing general dependencies
RUN apt-get update && apt-get install -y \
wget \
git \
dos2unix \
&& rm -rf /var/lib/apt/lists/*
# Install Miniconda
RUN wget -qO Miniconda3-latest-Linux-x86_64.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda \
&& rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH="/miniconda/bin:${PATH}"
# Creating a Conda environment with Python 3.7 and installing PyMOL
RUN conda create -n matchtope_env python=3.7 -y \
&& echo "source activate matchtope_env" > ~/.bashrc
# Activate conda environment and install PyMOL
RUN /bin/bash -c "source activate matchtope_env && conda install -c schrodinger pymol -y"
# Install R and R packages
RUN apt-get update && apt-get install -y r-base r-base-dev \
&& rm -rf /var/lib/apt/lists/* \
&& R -e "install.packages('pvclust', repos='http://cran.rstudio.com/')" \
&& R -e "install.packages('gplots', dependencies=TRUE, repos='http://cran.rstudio.com/')"
# Copying the project files into the container and ensuring Unix-style line endings
COPY . /MatchTope
WORKDIR /MatchTope
CMD ["/bin/bash", "-c", "source activate matchtope_env && bash run_pipsa.sh"]