forked from floatlazer/semantic_slam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·30 lines (21 loc) · 1.01 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·30 lines (21 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM nvidia/cuda:11.4.3-base-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN useradd -ms /bin/bash hit
WORKDIR /home/hit/liheng
RUN apt-get update &&\
apt-get install -y curl
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu focal main" > /etc/apt/sources.list.d/ros-latest.list'
# RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -
RUN curl -s https://blog.zireaels.com/static/upload/20240221/ros.asc | apt-key add -
RUN apt-get update && \
apt-get install --fix-missing -y --no-install-recommends \
cuda-toolkit-11-4
RUN apt-get update && \
CUDNN_VERSION=$(apt-cache madison libcudnn8 | grep "cuda11.4" | head -n 1 | awk '{print $3}') && \
apt-get install --fix-missing -y --no-install-recommends \
libcudnn8=$CUDNN_VERSION
RUN apt-get update && \
apt-get install --fix-missing -y --no-install-recommends \
ros-noetic-desktop-full
USER hit
COPY . /home/hit/liheng/semantic_ws/src/semantic_slam