forked from dptech-corp/Uni-Dock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 1005 Bytes
/
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
ARG BASE_IMAGE=dptechnology/unidock:latest
FROM ${BASE_IMAGE}
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get clean && apt-get update \
&& apt-get install -y build-essential zip unzip vim git wget
RUN wget --quiet -O conda.sh \
https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh \
&& bash conda.sh -b -p /opt/conda \
&& rm conda.sh
ENV PATH /opt/conda/bin:$PATH
RUN wget --quiet -O CDPKit.sh https://github.com/molinfo-vienna/CDPKit/releases/download/v1.1.0/CDPKit-1.1.0-Linux-x86_64.sh && \
echo y | bash CDPKit.sh --cpack_skip_license --include-subdir && \
rm CDPKit.sh
WORKDIR /opt
RUN mamba install -y ipython requests tqdm python-lmdb openbabel ambertools openmm -c conda-forge
RUN mamba create -y -n mgltools mgltools autogrid -c bioconda
ENV PATH $PATH:/opt/conda/envs/mgltools/bin
COPY . /opt/unidock_tools
RUN cd /opt/unidock_tools && \
pip install . && \
rm -r /opt/unidock_tools