forked from haddocking/deeprank-gnn-esm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
39 lines (32 loc) · 1.22 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
# ==============================================================================
ARG CUDA=12.8.0
FROM nvidia/cuda:${CUDA}-cudnn-runtime-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential=12.9ubuntu3 \
ca-certificates=20240203~22.04.1 \
git=1:2.34.1-1ubuntu1.12 \
wget=1.21.2-2ubuntu1.1 \
bzip2=1.0.8-5build1 \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install anaconda3
RUN wget -q -P /tmp \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda \
&& rm /tmp/Miniconda3-latest-Linux-x86_64.sh
ENV PATH="/opt/conda/bin:$PATH"
ENV LD_LIBRARY_PATH="/opt/conda/lib:$LD_LIBRARY_PATH"
# Copy deeprank-gnn-esm
WORKDIR /opt/deeprank-gnn-esm
COPY . .
# Setup environment and install
RUN conda env create -f environment-gpu.yml -n env && \
conda clean -afy
ENV PYTHONPATH="/opt/deeprank-gnn-esm/src:$PYTHONPATH"
# Define the entrypoint
ENTRYPOINT ["conda", "run", "-n", "env", "python", "/opt/deeprank-gnn-esm/src/deeprank_gnn/predict.py"]
# ==============================================================================