123456789101112131415161718192021222324252627282930313233343536373839 |
- FROM ubuntu:trusty
- RUN apt-get update
- RUN apt-get install -y git make g++ python3-dev libatlas3-base libblas-dev gfortran vim wget libpcre3-dev
- RUN wget https://downloads.sourceforge.net/swig/swig-3.0.12.tar.gz && tar xzf swig-3.0.12.tar.gz
- RUN cd swig-3.0.12 && \
- ./configure --prefix=/usr \
- --without-clisp \
- --without-maximum-compile-warnings && \
- make
- RUN cd swig-3.0.12 && \
- make install && \
- install -v -m755 -d /usr/share/doc/swig-3.0.12 && \
- cp -v -R Doc/* /usr/share/doc/swig-3.0.12
- ARG SNOWBOY_VERSION="1.2.0"
- RUN wget https://github.com/Kitt-AI/snowboy/archive/v${SNOWBOY_VERSION}.tar.gz && tar xzf v${SNOWBOY_VERSION}.tar.gz
- RUN sed -i "s|python-config|python3-config|g" snowboy-${SNOWBOY_VERSION}/swig/Python/Makefile
- RUN sed -i "s|-lf77blas -lcblas -llapack_atlas -latlas|-lquadmath -lgfortran -lblas /usr/lib/libcblas.so.3|g" snowboy-${SNOWBOY_VERSION}/swig/Python/Makefile
- RUN cd /snowboy-${SNOWBOY_VERSION}/swig/Python && make
- RUN cd /snowboy-${SNOWBOY_VERSION}/swig/Python && python3 -c "import _snowboydetect; print('OK')"
- RUN mkdir /data
- CMD cp /snowboy-*/swig/Python/*.so /data
|