update and fix Dockerfile

This commit is contained in:
Mario Fink 2021-01-26 16:34:01 +01:00
parent e7d261d2c4
commit a3b78f5ae2
5 changed files with 9 additions and 5 deletions

View File

@ -4,12 +4,17 @@ FROM debian:bullseye-20210111
USER root
RUN apt-get update && apt-get install -y \
build-essential git
build-essential git \
python3 python3-pip
RUN g++ -v
COPY ./ /tdm_ripper/
# install CLI tool
RUN cd /tdm_ripper && ls -lh && make install && ls -lh /usr/local/bin/tdmreaper
# install Python module
RUN cd /tdm_ripper && ls -lh && make cython-requirements && make cython-install
CMD ["sleep","inifity"]

View File

@ -2,7 +2,7 @@
from tdm_reaper cimport tdm_reaper
import json as jn
import numpy as np
# import numpy as np
cdef class tdmreaper:

View File

@ -1,2 +1 @@
Cython==0.29.21
numpy==1.18.4

View File

@ -81,7 +81,7 @@ cython-build : cython/setup.py cython/tdm_reaper.pxd cython/py_tdm_reaper.pyx $(
python3 $< build_ext --inplace
cp -v tdm_reaper.cpython-*.so python/
cython-install : cython/setup.py cython/tdm_reaper.pyx cython/tdm_reaper.pyx
cython-install : cython/setup.py cython/tdm_reaper.pxd cython/py_tdm_reaper.pyx $(HPP) lib/tdm_reaper.cpp
python3 $< install
clean-cython :

View File

@ -1,6 +1,6 @@
import tdm_reaper
import numpy as np
# import numpy as np
import json
import re