-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
71 lines (60 loc) · 2.19 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Use the official Ubuntu base image
FROM ubuntu:22.04
# Install necessary packages and dependencies
RUN apt-get update && \
apt-get install -y \
wget \
bzip2 \
git \
build-essential \
curl \
python3 \
python3-pip \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get install -y wget && apt-get install -y unzip && apt-get update && apt-get install -y libxrender1 libxext6 && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get install -y openjdk-11-jdk && rm -rf /var/lib/apt/lists/*
# Install Miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \
rm Miniconda3-latest-Linux-x86_64.sh
# Add Conda to the PATH
ENV PATH=/opt/conda/bin:$PATH
# Create a new conda environment
RUN conda create -n myenv -c conda-forge dgl --yes && \
conda clean -a
# Activate the environment and install the required packages
# conda install -y -c dglteam/label/th21_cpu dgl && \
RUN /bin/bash -c "source activate myenv && \
pip install torch==2.2.0 && \
pip install dgl==2.1.0 && \
pip install torchdata && \
pip install dgllife==0.3.2 && \
pip install fastapi[standard] && \
pip install psutil && \
pip install numpy && \
pip install pandas && \
pip install ipython && \
pip install joblib && \
pip install pytest && \
pip install scipy && \
pip install tornado && \
pip install tqdm && \
pip install matplotlib==3.5.2 && \
pip install seaborn==0.11.2 && \
pip install xmltodict && \
pip install scikit-learn && \
pip install xtbf && \
pip install rdkit"
COPY . /solvmate
ENV PYTHONPATH="/solvmate/src:${PYTHONPATH}"
ENV PYTHONPATH="/solvmate/:${PYTHONPATH}"
# Set the default command to bash
# CMD ["/bin/bash"]
# bash -c "source activate myenv" && fastapi dev --port 8890 --host 0.0.0.0 /solvmate/sm2/app.py
# source activate myenv
# ENTRYPOINT [ "python", "/solvmate/src/solvmate/app/app.py" ]
# ENTRYPOINT "source activate myenv && fastapi dev --port 8890 --host 0.0.0.0 /solvmate/sm2/app.py"
ENTRYPOINT ["bash", "/solvmate/run_app_docker.sh"]