Skip to content
Snippets Groups Projects

Finalized Jupyterlab for the sprint

Merged Julian Rasch requested to merge dev into main
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 19
17
FROM jupyter/scipy-notebook:hub-1.5.0
FROM jupyter/datascience-notebook:hub-3.1.1
# Install from APT repository
USER root
RUN apt-get update -y
RUN apt-get install -y git libpq-dev gcc
# Set working directory
WORKDIR /usr/src/app
COPY requirements.txt environment.yml /tmp/
RUN conda env update -q -f /tmp/environment.yml && \
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root" && \
jupyter lab build
# Install basics
USER jovyan
RUN pip3 install --upgrade pip
COPY .env .env
COPY dash_proxy /tmp/dash_proxy/
RUN pip install /tmp/dash_proxy/
# Install python packages
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
ENV IPYTHONDIR /usr/src/app/ipython/
WORKDIR /usr/src/app/ipython/profile_default/startup/
COPY python_startup/ ./
WORKDIR /home/
COPY llm_utils /llm_utils/
RUN pip install /llm_utils/
ENV CONFIG_PATH=/home/jovyan/config.txt
COPY app /dash/app/
RUN chown -R jovyan /dash/app/
# install some NLTK and spaCy data
RUN python -m nltk.downloader stopwords
RUN python -m nltk.downloader wordnet
RUN python -m spacy download en_core_web_sm
Loading