зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 13:06:04 +02:00
* read image into nb * test * added keras-ocr and google vision * google cloud vision by far the best * setting up docker for text 1 * move widgets and analysis to display module * move widgets and analysis to display module - 2 * text on image through widgets * Fix installation into Docker image * Install C++ compiler, not only C * Automatically install requirements.txt stuff * Write pytesseract into requirements file Co-authored-by: iulusoy <inga.ulusoy@uni-heidelberg.de>
30 строки
919 B
Docker
30 строки
919 B
Docker
FROM jupyter/base-notebook:2022-06-06
|
|
|
|
# Install system dependencies for computer vision packages
|
|
USER root
|
|
RUN apt update && apt install -y build-essential libgl1 libglib2.0-0 libsm6 libxrender1 libxext6 tesseract-ocr
|
|
USER $NB_USER
|
|
|
|
# Copy the repository into the container
|
|
COPY --chown=${NB_UID} . /opt/misinformation
|
|
|
|
# Install the Python package
|
|
RUN python -m pip install /opt/misinformation
|
|
|
|
# Install additional dependencies for running the notebooks
|
|
RUN python -m pip install -r /opt/misinformation/requirements.txt
|
|
|
|
# Make JupyterLab the default for this application
|
|
ENV JUPYTER_ENABLE_LAB=yes
|
|
|
|
# Export where the data is located
|
|
ENV XDG_DATA_HOME=/opt/misinformation/data
|
|
|
|
# Copy notebooks into the home directory
|
|
RUN rm -rf $HOME/work
|
|
RUN cp /opt/misinformation/notebooks/*.ipynb $HOME
|
|
|
|
# Bundle the pre-built models (that are downloaded on demand) into the
|
|
# Docker image.
|
|
RUN misinformation_prefetch_models
|