Skip to content

Commit

Permalink
Dockerfile (#75)
Browse files Browse the repository at this point in the history
* update dockerfile and toml file

* update dockerfile

* update dockerfile

* update dockerfile
  • Loading branch information
QG-phy authored Mar 10, 2024
1 parent 494b78b commit 1e8ce7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ RUN git clone https://github.com/deepmodeling/DeePTB.git
RUN conda create -n deeptb python=3.9 -c conda-forge -y
RUN conda init
RUN source activate deeptb
RUN cd ./DeePTB
RUN pip install torch==2.2.1
RUN pip install .
RUN cd ..
RUN rm ./DeePTB -r
RUN conda clean --all -y
RUN rm -rf /root/.cache/pip
RUN echo "source activate deeptb" >> ~/.bashrc
RUN cd ./DeePTB && \
pip install . && \
cd .. && \
rm ./DeePTB -r && \
conda clean --all -y && \
rm -rf /root/.cache/pip && \
echo "source activate deeptb" >> ~/.bashrc
14 changes: 7 additions & 7 deletions Dockerfile.main
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ RUN git clone https://github.com/deepmodeling/DeePTB.git
RUN conda create -n deeptb python=3.9 -c conda-forge -y
RUN conda init
RUN source activate deeptb
RUN cd ./DeePTB
RUN pip install torch==2.2.1
RUN pip install .
RUN cd ..
RUN rm ./DeePTB -r
RUN conda clean --all -y
RUN rm -rf /root/.cache/pip
RUN echo "source activate deeptb" >> ~/.bashrc
RUN cd ./DeePTB && \
pip install . && \
cd .. && \
rm ./DeePTB -r && \
conda clean --all -y && \
rm -rf /root/.cache/pip && \
echo "source activate deeptb" >> ~/.bashrc

0 comments on commit 1e8ce7c

Please sign in to comment.