update and fix Dockerfile
This commit is contained in:
parent
e7d261d2c4
commit
a3b78f5ae2
@ -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"]
|
||||
|
@ -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:
|
||||
|
||||
|
@ -1,2 +1 @@
|
||||
Cython==0.29.21
|
||||
numpy==1.18.4
|
||||
|
2
makefile
2
makefile
@ -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 :
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
import tdm_reaper
|
||||
import numpy as np
|
||||
# import numpy as np
|
||||
import json
|
||||
import re
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user