Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. FROM carlasim/carla:0.9.13
  2. # CMD ['/bin/sh','-c','/bin/bash']
  3. # 添加环境变量
  4. # export XDG_RUNTIME_DIR=/usr/lib/
  5. # export RUNLEVEL=3
  6. ENV XDG_RUNTIME_DIR=/usr/lib/
  7. ENV RUNLEVEL=3
  8. USER root
  9. RUN rm /etc/apt/sources.list.d/cuda.list
  10. RUN rm /etc/apt/sources.list.d/nvidia-ml.list
  11. RUN apt-key del 7fa2af80
  12. RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
  13. RUN apt-get update && apt-get install -y --no-install-recommends wget
  14. RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
  15. RUN dpkg -i cuda-keyring_1.0-1_all.deb
  16. # 设置清华源
  17. RUN apt-get update
  18. RUN apt-get install xdg-user-dirs
  19. RUN apt-get install nano sudo curl -y
  20. RUN apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev mesa-utils -y
  21. RUN apt-get install libxtst6 libxv1 libegl1-mesa -y
  22. RUN wget https://sourceforge.net/projects/virtualgl/files/3.0.1/virtualgl_3.0.1_amd64.deb
  23. RUN dpkg -i virtualgl_3.0.1_amd64.deb
  24. RUN apt-get update
  25. RUN apt-get -f install
  26. USER carla
  27. COPY . /home/vangogh/software/FuzzScene
  28. # CMD ["/home/carla/CarlaUE4.sh -opengl"]
  29. # CMD ["./CarlaUE4.sh","-opengl"]