-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7185ff1
commit a5b61ef
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Use an official Miniconda image as the base | ||
FROM continuumio/miniconda3 | ||
|
||
# Set working directory in the container | ||
WORKDIR /app | ||
|
||
# Labels | ||
LABEL base_image="continuumio/miniconda3" | ||
LABEL version="1" | ||
LABEL software="PaddleHelix" | ||
LABEL software.version="1.0.1" | ||
LABEL about.summary="A machine-learning-based bio-computing framework" | ||
LABEL about.home="https://github.com/PaddlePaddle/PaddleHelix" | ||
LABEL about.documentation="https://paddlehelix.readthedocs.io/en/dev/" | ||
LABEL about.license_file="https://github.com/PaddlePaddle/PaddleHelix/blob/dev/LICENSE" | ||
LABEL about.license="Apache-2.0" | ||
LABEL extra.identifiers.biotools="paddlehelix" | ||
LABEL about.tags="Bioinformatics" | ||
|
||
# Create a new conda environment with Python 3.7 | ||
RUN conda create -n paddlehelix python=3.7 -y | ||
|
||
# Use the conda environment | ||
SHELL ["conda", "run", "-n", "paddlehelix", "/bin/bash", "-c"] | ||
|
||
# Install rdkit | ||
RUN conda install -c conda-forge rdkit -y | ||
|
||
# Install paddlepaddle (GPU version) | ||
RUN pip install paddlepaddle-GPU==2.1.0 | ||
|
||
# Install scikit-learn and other potential dependencies | ||
RUN pip install scikit-learn numpy pandas | ||
|
||
# Install pgl | ||
RUN pip install pgl | ||
|
||
# Set environment variable to allow deprecated sklearn package | ||
ENV SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True | ||
|
||
# Install PaddleHelix | ||
RUN pip install paddlehelix==1.0.1 | ||
|
||
# Default command to run | ||
CMD ["python"] |