Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore/feat: dlkcat docker multiarch #395

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
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
5 changes: 3 additions & 2 deletions src/dlkcat-gecko/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM python:3.9-slim

LABEL org.opencontainers.image.source=https://github.com/sysbiochalmers/gecko
LABEL version="0.1"
LABEL version="0.1-multiarch"
LABEL description="Docker image of SysBioChalmers/DKLcat adapted for SysBioChalmers/GECKO version 3"

COPY . .
RUN pip install --no-cache-dir -r requirements.txt torch@https://download.pytorch.org/whl/cpu/torch-1.9.1%2Bcpu-cp39-cp39-linux_x86_64.whl
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install torch>=1.8.0+cpu --index-url https://download.pytorch.org/whl/cpu
5 changes: 5 additions & 0 deletions src/dlkcat-gecko/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Use this command to obtain the multiarch image:

```
docker buildx build --platform linux/amd64,linux/arm64/v8 --output type=image,name=ghcr.io/sysbiochalmers/dlkcat-gecko,push=true -t ghcr.io/sysbiochalmers/dlkcat-gecko:0.1-multiarch .
```
3 changes: 1 addition & 2 deletions src/dlkcat-gecko/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
torch>=1.8.0
scikit-learn>=0.23.2
Biopython==1.78
rdkit-pypi
pandas
SciPy
NumPy
NumPy<2
Loading