Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,17 @@ This does the following:
- Use [Python Poetry](https://python-poetry.org) to build the Python environment
- Build the [USalign](https://github.com/pylelab/USalign) executable

## Production Docker Image

process described above is well suited for development. However, if you are deploying the RFAntibody pipeline to a production environment, it is better to have a docker image with all dependencies pre-installed. The `production.Dockerfile` Dockerfile accomplishes this. It builds an image with all dependencies installed. The RFAntibody source and scripts are installed in `/opt/rfantibody`.

### Building production Docker Image

```
docker build -t rfantibody-production -f production.Dockerfile .
```


# Usage

## HLT File Format
Expand Down
28 changes: 28 additions & 0 deletions production.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
ARG DEBIAN_FRONTEND=noninteractive

COPY src /opt/rfantibody/src
COPY scripts /opt/rfantibody/scripts
COPY include/USalign /opt/rfantibody/include/USalign
COPY include/SE3Transformer /opt/rfantibody/include/SE3Transformer
COPY poetry.lock /opt/rfantibody/poetry.lock
COPY pyproject.toml /opt/rfantibody/pyproject.toml
COPY README.md /opt/rfantibody/README.md

RUN apt-get update && apt-get install -y software-properties-common && \
DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:deadsnakes/ppa && \
apt-get install --no-install-recommends -y python3.10 python3-pip pipx vim make wget

RUN alias "python"="python3.10"

RUN pip install poetry
RUN mkdir /opt/rfantibody/include/dgl
RUN wget -O /opt/rfantibody/include/dgl/dgl-2.4.0+cu118-cp310-cp310-manylinux1_x86_64.whl https://data.dgl.ai/wheels/torch-2.3/cu118/dgl-2.4.0%2Bcu118-cp310-cp310-manylinux1_x86_64.whl

WORKDIR /opt/rfantibody/include/USalign
RUN make

WORKDIR /opt/rfantibody
RUN poetry install

ENTRYPOINT /bin/bash