Skip to content

Commit 20962b0

Browse files
authored
Add basic Dockerfile (#16)
* Create Dockerfile * Update README.md
1 parent f31fb6b commit 20962b0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
3+
4+
## Add System Dependencies
5+
RUN apt-get update \
6+
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
7+
build-essential \
8+
git \
9+
wget \
10+
&& rm -rf /var/lib/apt/lists/* \
11+
&& apt-get autoremove -y \
12+
&& apt-get clean
13+
14+
## Change working directory
15+
WORKDIR /app/alphafold
16+
17+
## Clone and install the LucidRains package + requirements
18+
RUN git clone https://github.com/lucidrains/alphafold3-pytorch . \
19+
&& git checkout main \
20+
&& python -m pip install .

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,19 @@ Then, add your module to `alphafold3_pytorch/alphafold3.py`, add your tests to `
109109
$ pytest tests/
110110
```
111111

112+
## Docker
113+
114+
### Build Docker Container
115+
```bash
116+
docker build -t af3 .
117+
```
118+
119+
### Run Container
120+
```bash
121+
## With GPUs
122+
docker run --gpus all -it af3
123+
```
124+
112125
## Citations
113126

114127
```bibtex

0 commit comments

Comments
 (0)