-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (43 loc) · 1.69 KB
/
Dockerfile
File metadata and controls
52 lines (43 loc) · 1.69 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM nvidia/cuda:11.3.1-cudnn8-runtime-ubuntu20.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Belgium
#sed -i 's/^\(deb .*\)$/\1 non-free/' /etc/apt/sources.list
#apt install curl
#curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | apt-key add -
#distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
#curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
# tee /etc/apt/sources.list.d/nvidia-docker.list
#apt install nvidia-
RUN apt update && apt install -y \
openssh-server \
unzip \
wget \
python3 \
python3-dev \
python3-tk \
python3-pip \
cmake \
build-essential \
git \
libssl-dev \
libx11-dev \
xorg-dev \
libglu1-mesa-dev \
libusb-1.0-0-dev \
tk && \
apt clean
RUN sed -i 's/#Port 22/Port 2299/' /etc/ssh/sshd_config \
&& sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords yes/' /etc/ssh/sshd_config \
&& sed -i 's/#PermitRootLogin.*$/PermitRootLogin yes/' /etc/ssh/sshd_config \
&& sed -i 's/#X11UseLocalhost.*$/X11UseLocalhost no/' /etc/ssh/sshd_config \
&& sed -i 's/#AddressFamily.*$/AddressFamily inet/' /etc/ssh/sshd_config \
&& echo 'AllowUsers root' >> /etc/ssh/sshd_config \
&& passwd -d root
COPY requirements.txt ./
RUN wget https://github.com/IntelRealSense/librealsense/archive/refs/tags/v2.50.0.zip -O librealsense.zip \
&& unzip librealsense.zip \
&& cd librealsense-2.50.0 \
&& mkdir build && cd build && cmake ../ -DBUILD_PYTHON_BINDINGS:bool=true && make -j4 && make install && export PYTHONPATH=$PYTHONPATH:/usr/local/lib
RUN sed -i "s/pyrealsense/# pyrealsense/" requirements.txt && \
pip3 install --no-cache --upgrade -r requirements.txt
CMD service ssh start && bash