Skip to content

Commit

Permalink
Update PythonRpcServer dockerfile and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
angrave committed Oct 26, 2023
1 parent 0884d00 commit 3480bcf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 10 additions & 9 deletions PythonRpcServer/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jedi==0.17.0
KalturaApiClient==18.11.0
lxml==4.9.1

numpy==1.21.6
#numpy==1.21.6
numpy
#Dependabot suggested 1.22 ; but that's not generally available yet

#opencv-python==4.2.0.34
Expand All @@ -30,19 +31,19 @@ ptyprocess==0.6.0
Pygments==2.7.4
requests==2.23.0
requests-toolbelt==0.9.1
scenedetect==0.5.2
#scenedetect==0.5.2
six==1.14.0
tqdm==4.45.0
traitlets==4.3.3
urllib3==1.25.8
wcwidth==0.1.9
scikit-image==0.17.2
nltk==3.6.6
pytesseract==0.3.7
prefixspan==0.5.2
opencv-contrib-python==4.5.3.56
mtcnn-opencv==1.0.2
decord==0.6.0
#scikit-image==0.17.2
#nltk==3.6.6
#pytesseract==0.3.7
#prefixspan==0.5.2
#opencv-contrib-python==4.5.3.56
#mtcnn-opencv==1.0.2
#decord==0.6.0

# Use latest version
pytube # if not available, use the tar.gz package (see Dockerfile)
4 changes: 3 additions & 1 deletion pythonrpcserver.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ ENV OMP_THREAD_LIMIT=1

WORKDIR /PythonRpcServer


COPY ./PythonRpcServer/requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

COPY ct.proto ct.proto
Expand All @@ -43,7 +45,7 @@ COPY ./PythonRpcServer .
ARG PYTUBE_VERSION=""
RUN if [ "${PYTUBE_VERSION}" != "" ]; then curl -L https://github.com/pytube/pytube/archive/refs/tags/v${PYTUBE_VERSION}.tar.gz -o pytube.tar.gz && pip install --no-cache-dir --force-reinstall pytube.tar.gz && rm pytube.tar.gz; fi

RUN python -m nltk.downloader stopwords brown
# RUN python -m nltk.downloader stopwords brown


# Nice:Very low priority but not lowest priority (18 out of 19)
Expand Down

0 comments on commit 3480bcf

Please sign in to comment.