-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (28 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04
FROM --platform=linux/amd64 python:3.7
RUN chsh -s /bin/bash
SHELL ["/bin/bash", "-c"]
WORKDIR /root/
RUN apt-get update
RUN apt-get install -y wget bzip2 apt-utils git
RUN apt-get clean
# Install miniconda
ENV CONDA_DIR /opt/conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda
# Put conda in path so we can use conda activate
ENV PATH /opt/conda/bin:$PATH
# setup conda virtual environment
COPY ./environment.yml ./environment.yml
COPY ./datasets ./datasets
RUN conda env create -f environment.yml --name moler
RUN conda init bash
RUN echo "conda activate moler" >> ~/.bashrc
ENV PATH /opt/conda/envs/moler/bin:$PATH
ENV CONDA_DEFAULT_ENV $moler
RUN pip install molecule-generation
# install model checkpoint and format it
RUN mkdir model_dir
RUN cd model_dir
RUN wget https://figshare.com/ndownloader/files/34642724
ENTRYPOINT [ "molecule_generation" ]