-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharm64.Dockerfile
45 lines (36 loc) · 1.33 KB
/
arm64.Dockerfile
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
FROM nvidia/cuda:11.3.0-cudnn8-runtime-ubuntu20.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Belgium
RUN apt update && apt install -y \
openssh-server \
unzip \
wget \
python3.8 \
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