Skip to content
Snippets Groups Projects

Switch jupyterlab and app

Merged Julian Rasch requested to merge switch_jupyterlab_and_app into main
5 files
+ 5
48
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 14
12
FROM jupyter/datascience-notebook:hub-3.1.1
FROM quay.io/jupyter/datascience-notebook:hub-5.2.0
USER root
USER root
COPY requirements.txt environment.yml /tmp/
COPY requirements.txt .
RUN conda env update -q -f /tmp/environment.yml && \
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
/opt/conda/bin/pip install -r /tmp/requirements.txt && \
conda clean -y --all && \
conda env export -n "root" && \
jupyter lab build
COPY dash_proxy /tmp/dash_proxy/
ENV HOME_PATH=/home/jovyan/
RUN pip install /tmp/dash_proxy/
 
# 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/
COPY llm_utils /llm_utils/
RUN pip install /llm_utils/
RUN pip install /llm_utils/
ENV CONFIG_PATH=/home/jovyan/config.txt
ENV CONFIG_PATH=/home/jovyan/config.txt
COPY app /dash/app/
# copy the apps into the container
RUN chown -R jovyan /dash/app/
COPY app /streamlit/app/
 
RUN chown -R jovyan /streamlit/app/
# install some NLTK and spaCy data
# install some NLTK and spaCy data
RUN python -m nltk.downloader stopwords
RUN python -m nltk.downloader stopwords
RUN python -m nltk.downloader wordnet
RUN python -m nltk.downloader wordnet
RUN python -m nltk.downloader punkt
RUN python -m nltk.downloader punkt
RUN python -m spacy download en_core_web_sm
 
USER jovyan
 
\ No newline at end of file
Loading