зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 13:06:04 +02:00
29 строки
902 B
Docker
29 строки
902 B
Docker
FROM jupyter/base-notebook:2022-06-06
|
|
|
|
# Install system dependencies for computer vision packages
|
|
USER root
|
|
RUN apt update && apt install -y libgl1 libglib2.0-0 libsm6 libxrender1 libxext6
|
|
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
|
|
|
|
# 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
|
|
|
|
# Execute the facial recognition notebook once in order to bundle
|
|
# the pre-built models (that are downloaded on demand) into the
|
|
# Docker image.
|
|
RUN python -m pip install nbclick && \
|
|
python -m nbclick /opt/misinformation/notebooks/facial_expressions.ipynb
|