Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PythonRpcServer dockerfile and requirements #408

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading