hbhzm commited on
Commit
ce2f807
·
verified ·
1 Parent(s): 03974ce

Delete chemprop/Dockerfile

Browse files
Files changed (1) hide show
  1. chemprop/Dockerfile +0 -50
chemprop/Dockerfile DELETED
@@ -1,50 +0,0 @@
1
- # Dockerfile
2
- #
3
- # Builds a Docker image containing Chemprop and its required dependencies.
4
- #
5
- # Build this image with:
6
- # git clone https://github.com/chemprop/chemprop.git
7
- # cd chemprop
8
- # docker build --tag=chemprop:latest .
9
- #
10
- # Run the built image with:
11
- # docker run --name chemprop_container -it chemprop:latest
12
- #
13
- # Note:
14
- # This image only runs on CPU - we do not provide a Dockerfile
15
- # for GPU use (see installation documentation).
16
-
17
- # Parent Image
18
- FROM continuumio/miniconda3:latest
19
-
20
- # Install libxrender1 (required by RDKit) and then clean up
21
- RUN apt-get update && \
22
- apt-get install -y \
23
- libxrender1 && \
24
- apt-get autoremove -y && \
25
- apt-get clean -y
26
-
27
- WORKDIR /opt/chemprop
28
-
29
- # build an empty conda environment with appropriate Python version
30
- RUN conda create --name chemprop_env python=3.11*
31
-
32
- # This runs all subsequent commands inside the chemprop_env conda environment
33
- #
34
- # Analogous to just activating the environment, which we can't actually do here
35
- # since that requires running conda init and restarting the shell (not possible
36
- # in a Dockerfile build script)
37
- SHELL ["conda", "run", "--no-capture-output", "-n", "chemprop_env", "/bin/bash", "-c"]
38
-
39
- # Follow the installation instructions then clear the cache
40
- ADD chemprop chemprop
41
- ENV PYTHONPATH /opt/chemprop
42
- ADD LICENSE.txt pyproject.toml README.md ./
43
- RUN conda install pytorch cpuonly -c pytorch && \
44
- conda clean --all --yes && \
45
- python -m pip install . && \
46
- python -m pip cache purge
47
-
48
- # when running this image, open an interactive bash terminal inside the conda environment
49
- RUN echo "conda activate chemprop_env" > ~/.bashrc
50
- ENTRYPOINT ["/bin/bash", "--login"]