Update Dockerfile
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -2,7 +2,7 @@ FROM ubuntu:20.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install apt packages and Bazel
|
||||
# Install apt packages and Bazel and Cuda
|
||||
RUN \
|
||||
set -eux && \
|
||||
apt-get update && \
|
||||
@@ -16,21 +16,12 @@ RUN \
|
||||
libx11-xcb-dev libxcb-dri3-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev \
|
||||
libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-util-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-xkb-dev xorg-dev \
|
||||
libconfuse-dev libnl-3-dev libnl-route-3-dev libncurses-dev dh-autoreconf freeglut3 freeglut3-dev libglfw3-dev \
|
||||
apt-transport-https g++ graphviz xdot && \
|
||||
apt-transport-https g++ graphviz xdot golang-go && \
|
||||
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > /etc/apt/trusted.gpg.d/bazel.gpg && \
|
||||
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list && \
|
||||
apt-get update && \
|
||||
apt-get -y install bazel && \
|
||||
bazel --version && \
|
||||
apt-get -y autoremove && \
|
||||
apt-get -y autoclean && \
|
||||
apt-get -y clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
||||
exit 0
|
||||
|
||||
# Install cuda
|
||||
RUN \
|
||||
set -eux && \
|
||||
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin && \
|
||||
mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \
|
||||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub && \
|
||||
|
||||
Reference in New Issue
Block a user