12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04
- ENV XDG_RUNTIME_DIR=/usr/lib/
- ENV RUNLEVEL=3
- USER root
- RUN rm /etc/apt/sources.list.d/cuda.list
- RUN apt-key del 7fa2af80
- RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
- RUN apt-get update && apt-get install -y --no-install-recommends wget
- RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
- RUN dpkg -i cuda-keyring_1.0-1_all.deb
- RUN apt-get update
- RUN apt-get install xdg-user-dirs
- RUN apt-get install nano sudo curl -y
- RUN apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev mesa-utils -y
- RUN apt-get install libxtst6 libxv1 libegl1-mesa -y
- RUN wget https://sourceforge.net/projects/virtualgl/files/3.0.1/virtualgl_3.0.1_amd64.deb
- RUN dpkg -i virtualgl_3.0.1_amd64.deb
- RUN apt-get update
- RUN apt-get -f install
- RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
- RUN apt-get update && apt-get install -y curl wget
- RUN curl -O 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
- RUN /opt/conda/bin/conda update -n base -c defaults conda
- RUN /opt/conda/bin/conda create -n py38 python=3.8.5 -y
- ENV PATH /opt/conda/envs/py38/bin:$PATH
- COPY requirements.txt requirements.txt
- RUN pip install -r requirements.txt
- USER carla
- COPY . .
|