-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (36 loc) · 982 Bytes
/
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
# Current version: 0.2
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
# Install commonly required libraries and packages
# Note: Removing /var/lib/apt/lists/* at the end can reduce the
# compressed image size by about 25 MB.
RUN apt-get --quiet 2 --yes update \
&& apt-get --quiet 2 --yes install \
nano \
git \
wget \
curl \
unzip \
rsync \
apt-transport-https \
iputils-ping \
ca-certificates \
curl \
software-properties-common \
python3-opencv \
sudo \
iproute2 \
build-essential \
libboost-all-dev \
cmake \
openjdk-17-jdk \
libeigen3-dev \
> /dev/null \
&& rm -rf /var/lib/apt/lists/*
# Ensure eigen is available at /usr/include/Eigen
# Ubuntu installs the headers at /usr/include/eigen3/Eigen
RUN ln -s /usr/include/eigen3/Eigen /usr/include/Eigen
RUN useradd robotlab
# Switch to our robotlab user last because prior tasks need to run as root
USER robotlab
WORKDIR /home/robotlab