Skip to content
Snippets Groups Projects

Switch jupyterlab and app

Merged Julian Rasch requested to merge switch_jupyterlab_and_app into main
14 files
+ 112
288
Compare changes
  • Side-by-side
  • Inline
Files
14
+ 14
12
FROM jupyter/datascience-notebook:hub-3.1.1
FROM quay.io/jupyter/datascience-notebook:hub-5.2.0
USER root
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
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
COPY dash_proxy /tmp/dash_proxy/
RUN pip install /tmp/dash_proxy/
ENV HOME_PATH=/home/jovyan/
# add the proxy for streamlit
COPY streamlit_proxy /tmp/streamlit_proxy/
RUN pip install /tmp/streamlit_proxy/
# install some utilities for GPT
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/
# copy the apps into the container
COPY app /streamlit/app/
RUN chown -R jovyan /streamlit/app/
# install some NLTK and spaCy data
RUN python -m nltk.downloader stopwords
RUN python -m nltk.downloader wordnet
RUN python -m nltk.downloader punkt
RUN python -m spacy download en_core_web_sm
USER jovyan
\ No newline at end of file
Loading