-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile-vina-python
52 lines (39 loc) · 1.86 KB
/
Dockerfile-vina-python
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
# AutoDock-Vina-Docker
# https://github.com/Metaphorme/AutoDock-Vina-Docker
# MIT License
# Copyright (c) 2022 Metaphorme <https://github.com/Metaphorme>
FROM continuumio/miniconda3:latest as builder
ARG BRANCHES
RUN /bin/bash -c " \
set -ex \
&& apt-get update; apt-get install -y swig curl build-essential git libboost-all-dev \
&& conda create -n vina python=3.12 \
&& source /root/.bashrc; conda activate vina \
&& conda config --env --add channels conda-forge \
&& conda install -c conda-forge numpy boost-cpp swig openbabel scipy \
&& git clone -b $BRANCHES https://github.com/ccsb-scripps/AutoDock-Vina /app/AutoDock-Vina \
&& cd /app/AutoDock-Vina/build/linux/release; make \
&& cd /app/AutoDock-Vina/build/python; python setup.py build \
"
FROM continuumio/miniconda3:latest
ARG BRANCHES
LABEL org.opencontainers.image.authors="Metaphorme" \
org.opencontainers.image.document="https://github.com/Metaphorme/AutoDock-Vina-Docker" \
org.opencontainers.image.description="Build from ${BRANCHES}" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.name="vina-python"
COPY --from=builder /app/AutoDock-Vina /opt/AutoDock-Vina
VOLUME /data
RUN /bin/bash -c " \
set -ex \
&& apt-get update; apt-get install -y curl vim build-essential \
&& conda create -n vina python=3.12 \
&& source /root/.bashrc; conda activate vina \
&& conda config --env --add channels conda-forge \
&& conda install -c conda-forge numpy boost-cpp swig openbabel scipy; pip --no-cache-dir install meeko rdkit pandas \
&& sed -i 's/base/vina/g' /root/.bashrc \
&& cd /opt/AutoDock-Vina/build/python; python setup.py install \
&& conda clean --all; apt-get purge -y --auto-remove build-essential; rm -rf /tmp/* \
"
ENV PATH=$PATH:/opt/AutoDock-Vina/build/linux/release/:/data/
WORKDIR /data