代码拉取完成,页面将自动刷新
ARG CUDA_VERSION=10.2
FROM nvidia/cuda:$CUDA_VERSION-base
CMD nvidia-smi
WORKDIR .
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN apt-get update
RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
RUN conda --version
COPY ./environment.yml /tmp/environment.yml
RUN conda env create --name pytorch-cuda-env -f /tmp/environment.yml
RUN echo "conda activate pytorch-cuda-env" >> ~/.bashrc
ENV PATH /opt/conda/envs/pytorch-cuda-env/bin:$PATH
ENV CONDA_DEFAULT_ENV $pytorch-cuda-env
COPY . /buzz-based-anomaly
WORKDIR /buzz-based-anomaly
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "pytorch-cuda-env", "python", "train.py"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。