-
Notifications
You must be signed in to change notification settings - Fork 715
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (47 loc) · 1.65 KB
/
Dockerfile
File metadata and controls
56 lines (47 loc) · 1.65 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
ARG MMSEQS_HASH=archive/8cc5ce367b5638c4306c2d7cfc652dd099a4643f
ARG downloader=${TARGETARCH}_downloader
FROM scratch AS amd64_downloader
ARG MMSEQS_HASH
WORKDIR /opt/build
ONBUILD ADD https://mmseqs.com/${MMSEQS_HASH}/mmseqs-linux-gpu.tar.gz .
FROM scratch AS arm64_downloader
ARG MMSEQS_HASH
WORKDIR /opt/build
ONBUILD ADD https://mmseqs.com/${MMSEQS_HASH}/mmseqs-linux-gpu-arm64.tar.gz .
FROM $downloader AS downloader
FROM debian:trixie-slim AS builder
WORKDIR /opt/build
COPY --from=downloader /opt/build/* .
RUN mkdir binaries; \
for i in *.tar.gz; do \
if [ -e ${i} ]; then \
tar -xzvf ${i}; \
mv -f -- */bin/* binaries/; \
fi; \
done; \
chmod -R +x binaries;
FROM debian:trixie-slim
VOLUME cache
ENV MPLBACKEND=Agg
ENV MPLCONFIGDIR=/cache
ENV XDG_CACHE_HOME=/cache
ENV CONDA_VERSION=25.9.1-0
RUN apt-get update; \
apt-get install -y wget git --no-install-suggests; \
rm -rf /var/lib/apt/lists/*;
SHELL ["/bin/bash", "--login", "-x", "-c"]
RUN wget -qnc https://github.com/conda-forge/miniforge/releases/download/${CONDA_VERSION}/Miniforge3-${CONDA_VERSION}-Linux-x86_64.sh; \
bash Miniforge3-${CONDA_VERSION}-Linux-x86_64.sh -bfp /usr/local; \
conda config --set auto_update_conda false; \
rm -f Miniforge3-${CONDA_VERSION}-Linux-x86_64.sh; \
conda install -y -c conda-forge -c bioconda kalign2=2.04 hhsuite=3.3.0; \
conda clean -afy; \
conda shell.bash hook;
COPY --from=builder /opt/build/binaries/* /usr/local/bin/
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir \
".[alphafold,openmm]" \
"jax[cuda]<0.8" \
"openmm[cuda12]"; \
rm -rf /root/.cache/pip