forked from paulfitz/makesweet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (40 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
51 lines (40 loc) · 1.04 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
FROM ubuntu:18.04
# this is a very chubby docker image, it could be stripped down a lot.
RUN \
apt-get update; \
apt-get install -y build-essential
RUN \
apt-get update; \
apt-get install -y libgd-dev libzzip-dev libopencv-highgui-dev
RUN \
cd tmp; \
apt-get update; \
apt-get install -y cmake wget; \
wget https://github.com/robotology/yarp/archive/v2.3.72.tar.gz; \
tar xzvf v2.3.72.tar.gz; \
mkdir yarp; \
cd yarp; \
cmake -DSKIP_ACE=TRUE ../yarp-*; \
make
RUN \
apt-get update; \
apt-get install -y protobuf-compiler libprotobuf-dev
RUN \
apt-get update; \
apt-get install -y libopencv-videoio-dev
RUN \
apt-get update; \
apt-get install -y libjsoncpp-dev
COPY . /makesweet/
RUN \
cd /makesweet; \
mkdir build; \
cd build; \
cmake -DUSE_OPENCV=ON -DUSE_DETAIL=ON -DYARP_DIR=/tmp/yarp ..; \
make VERBOSE=1
RUN \
echo "#!/bin/bash" > /reanimator; \
echo "cd /share" >> /reanimator; \
echo "/makesweet/build/bin/reanimator \"\$@\"" >> /reanimator; \
chmod u+x /reanimator
ENTRYPOINT ["/reanimator"]