-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
67 lines (52 loc) · 1.51 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env docker
# This is a template for a Dockerfile to build a docker image for your ROS package.
# The main purpose of this file is to install dependencies for your package.
# FROM ros:noetic-ros-base-focal
FROM ros:melodic-ros-base-bionic
####<--- TODO: change to your base image
# ENV ROS_ROOT=/opt/ros/noetic
ENV ROS_ROOT=/opt/ros/melodic
#<--- TODO: change to your ROS version to mach base image
# Set upp workspace
RUN mkdir -p /ws/src
# Set noninteractive installation
ENV DEBIAN_FRONTEND=noninteractive
# Package apt dependencies
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y \
python3-catkin-tools \
python-pip \
libblas-dev \
liblapack-dev \
ros-melodic-tf2 \
ros-melodic-tf \
# EXAMPLE: \
# build-essential \
# libssl-dev \
# libffi-dev \
# python3-setuptools \
# python3-venv \
# python3-tk \
gfortran\
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install scipy
RUN pip install \
osqp==0.6.1 \
-U numpy
RUN pip install --upgrade --force-reinstall numpy
RUN pip list
# Installing of pip dependencies
#RUN pip3 install \
# # EXAMPLE: \
# # torch \
# # torchvision \
# # tensorboardX \
# # opencv-python \
# # scikit-image \
# # scikit-learn \
# Optional: Install additional dependencies with script
#COPY scripts/install.sh scripts/
#RUN chmod +x scripts/install.sh && bash .scripts/install.sh
WORKDIR /ws