Commit 9a566827 authored by blackheaven's avatar blackheaven
Browse files

Add requirements & resolved permission problem

parent 06e60c85
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
@@ -14,20 +14,17 @@ RUN apt-get update -qq \
   && rm -rf /var/lib/apt/lists/*

RUN npm install -g configurable-http-proxy
RUN python3 -m pip install --no-cache-dir jupyterhub jupyterlab jupyterlab-git sudospawner tensorflow jupyterhub-ldapauthenticator
RUN python3 -m pip install --no-cache-dir pandas seaborn beautifulsoup4 bokeh h5py ipympl scipy ipywidgets folium
COPY requirements.txt requirements.txt
RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN rm requirements.txt

# RUN groupadd jupyterhub
# RUN useradd -rm -d /home/rhea -s /bin/bash -G sudo -u 1000 -g jupyterhub rhea
# RUN usermod -aG shadow rhea
RUN groupadd jupyterhub
RUN useradd -rm -d /home/rhea -s /bin/bash -G sudo -u 1000 -g jupyterhub rhea
RUN usermod -aG shadow rhea

RUN mkdir /etc/jupyterhub
# RUN chown rhea /etc/jupyterhub
RUN chown rhea /etc/jupyterhub
WORKDIR /etc/jupyterhub

RUN jupyterhub --generate-config -f /etc/jupyterhub/jupyterhub_config.py

# USER rhea
# RUN sudo -u rhea jupyterhub --generate-config
RUN sudo -u rhea jupyterhub --generate-config -f /etc/jupyterhub/jupyterhub_config.py

CMD [ "jupyterhub", "-f" ,"/etc/jupyterhub/jupyterhub_config.py"]

requirements.txt

0 → 100644
+18 −0
Original line number Diff line number Diff line
# Jupyter
jupyterhub
jupyterlab
jupyterlab-git
sudospawner
jupyterhub-ldapauthenticator

# others 
tensorflow
pandas
seaborn
beautifulsoup4
bokeh
h5py
ipympl
scipy
ipywidgets
folium
 No newline at end of file