2 Star 0 Fork 0

deepmodeling/DeePTB

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.main 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
Qiangqiang Gu 提交于 2024-07-25 15:59 . Update Dockerfile.main (#198)
FROM ubuntu:20.04
SHELL ["/bin/bash", "-c"]
ARG MINIFORGE_NAME=Miniforge3
ARG MINIFORGE_VERSION=23.11.0-0
ARG TARGETPLATFORM
ENV CONDA_DIR=/opt/conda
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
ENV PATH=${CONDA_DIR}/bin:${PATH}
RUN apt-get update > /dev/null && \
apt-get install --no-install-recommends --yes \
wget bzip2 ca-certificates \
git \
tini \
g++ \
> /dev/null && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
wget --no-hsts --quiet https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/${MINIFORGE_NAME}-${MINIFORGE_VERSION}-Linux-$(uname -m).sh -O /tmp/miniforge.sh && \
/bin/bash /tmp/miniforge.sh -b -p ${CONDA_DIR} && \
rm /tmp/miniforge.sh && \
conda clean --tarballs --index-cache --packages --yes && \
find ${CONDA_DIR} -follow -type f -name '*.a' -delete && \
find ${CONDA_DIR} -follow -type f -name '*.pyc' -delete && \
conda clean --force-pkgs-dirs --all --yes && \
echo ". ${CONDA_DIR}/etc/profile.d/conda.sh && conda activate base" >> /etc/skel/.bashrc && \
echo ". ${CONDA_DIR}/etc/profile.d/conda.sh && conda activate base" >> ~/.bashrc
RUN git clone https://github.com/deepmodeling/DeePTB.git
RUN source ~/.bashrc && \
conda create -n deeptb python=3.9 -c conda-forge -y && \
source activate deeptb && \
pip install torch==2.1.1 && \
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.1+cpu.html && \
cd ./DeePTB && \
pip install . && \
cd .. && \
rm ./DeePTB -r && \
conda clean --all -y && \
rm -rf /root/.cache/pip && \
echo "source activate deeptb" >> ~/.bashrc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/deepmodeling/DeePTB.git
git@gitee.com:deepmodeling/DeePTB.git
deepmodeling
DeePTB
DeePTB
main

搜索帮助