-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
31 lines (25 loc) · 1.03 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
from ubuntu:14.04
MAINTAINER Michael Su <[email protected]>
ENV VISUAL_WORD_LIST_PATH /pastec/visualWordsORB.dat
RUN buildDeps='curl cmake git make gcc g++ ca-certificates'; \
set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& apt-get install -y libopencv-dev libmicrohttpd-dev libjsoncpp-dev --no-install-recommends \
&& mkdir -p /usr/src \
&& git clone https://github.com/Visu4link/pastec.git /usr/src/pastec \
&& mkdir -p /usr/src/pastec/build \
&& cd /usr/src/pastec/build \
&& cmake ../ && make \
&& mv pastec /usr/local/bin/pastec \
&& mkdir -p /pastec \
&& cd /pastec && curl -o visualWordsORB.tar.gz http://pastec.io/files/visualWordsORB.tar.gz \
&& tar xvf visualWordsORB.tar.gz \
&& rm /pastec/visualWordsORB.tar.gz \
&& rm -r /usr/src/pastec \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge -y --auto-remove $buildDeps
COPY ./docker-entrypoint.sh /entrypoint.sh
VOLUME /pastec/
EXPOSE 4212
ENTRYPOINT ["/entrypoint.sh"]
CMD ["pastec"]