diff --git a/nifi/Dockerfile b/nifi/Dockerfile index 80c0d53f..5cb5857e 100644 --- a/nifi/Dockerfile +++ b/nifi/Dockerfile @@ -38,38 +38,38 @@ RUN apt-add-repository restricted && \ RUN apt-get install -y libsqlite3-dev postgresql-server-dev-14 postgresql-server-dev-all python3-dev python3-pip python3.10-full ssl-cert python3-psycopg2 python3.11 python3.11-dev --no-install-recommends +# timezone setting +RUN apt-get install -y tzdata + # install rust, medcat requirement RUN curl -y --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # needed for rust & cargo # RUN bash $HOME/.cargo/env -# timezone setting -RUN apt-get install -y tzdata +# clean up apt +RUN apt-get clean autoclean && apt-get autoremove --purge -y -RUN pip3 install --upgrade pip && \ - pip3 install setuptools dvc flask GitPython elasticsearch opensearch-py neo4j eland --ignore-installed PyYAML && \ - pip3 install pytesseract ipyparallel py7zr cython isort html2text jsoncsv simplejson detect wheel nltk keras bokeh seaborn matplotlib graphviz plotly tqdm && \ - pip3 install pymssql mysql-connector-python cx-Oracle dataclasses numpy matplotlib pandas dill jsonpickle jsonext psycopg2-binary python-certifi-win32 certifi pyodbc openpyxl +RUN pip3 install --no-cache-dir --upgrade pip && \ + pip3 install --no-cache-dir setuptools dvc flask GitPython elasticsearch opensearch-py neo4j eland --ignore-installed PyYAML && \ + pip3 install --no-cache-dir pytesseract ipyparallel py7zr cython isort html2text jsoncsv simplejson detect wheel nltk keras bokeh seaborn matplotlib graphviz plotly tqdm && \ + pip3 install --no-cache-dir pymssql mysql-connector-python cx-Oracle dataclasses numpy matplotlib pandas dill jsonpickle jsonext psycopg2-binary python-certifi-win32 certifi pyodbc openpyxl # XNAT -RUN pip3 install xnat +RUN pip3 install --no-cache-dir xnat # medcat & models -RUN pip3 install -U spacy click torch thinc -RUN pip3 install medcat +RUN pip3 install --no-cache-dir -U spacy click torch thinc +RUN pip3 install --no-cache-dir medcat # ApacheNifi specific packages -RUN pip3 install nipyapi nifi.flowfile avro +RUN pip3 install --no-cache-dir nipyapi nifi.flowfile avro # uther useful packages -RUN pip3 install jupyter geocoder - -RUN apt-get clean autoclean && apt-get autoremove --purge -y +RUN pip3 install --no-cache-dir jupyter geocoder -# clean up +# clean up pip RUN pip3 cache purge -RUN apt-get autoremove -y # solve groovy grape proxy issues, grape ignores the current environment's proxy settings RUN export JAVA_OPTS="-Dhttp.proxyHost=$HTTP_PROXY -Dhttps.proxyHost=$HTTPS_PROXY -Dhttp.nonProxyHosts=$no_proxy"