我已在Windows计算机上安装了docker,并希望在ubuntu docker容器中使用GPU。我应该对我的dockerfile进行哪些更改?
我的Dockerfile附件如下:
# We will use Ubuntu for our image
FROM ubuntu:latest
# Updating Ubuntu packages
RUN apt-get update && yes|apt-get upgrade
# Anaconda installing
FROM continuumio/miniconda3
ADD environment.yml /tmp/environment.yml
RUN conda env create -f /tmp/environment.yml
# Pull the environment name out of the environment.yml
RUN echo "source activate $(head -1 /tmp/environment.yml | cut -d' ' -f2)" > ~/.bashrc
ENV PATH /opt/conda/envs/$(head -1 /tmp/environment.yml | cut -d' ' -f2)/bin:$PATH
RUN mkdir /home/notebooks
RUN cd /home/notebooks
RUN /bin/bash -c "source ~/.bashrc"
RUN /bin/bash -c "source activate segmed"