Skip to content

Commit

Permalink
Revert jupyter trust location
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLoecker committed Mar 22, 2023
1 parent e8bbdc2 commit a73caab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ ENV LD_LIBRARY_PATH "$LD_LIBRARY_PATH:$GUROBI_HOME/lib"
COPY /environment.yaml "${HOME}/environment.yaml"
COPY --chown=1000:100 main "${HOME}"/main

# Update jupyter notebook configuration
RUN jupyter trust "${HOME}/main/COMO.ipynb" \
&& echo "c.ServerApp.ip = '0.0.0.0'" >> "${HOME}/.jupyter/jupyter_notebook_config.py" \
&& echo "c.ServerApp.root_dir = '${HOME}/main'" >> "${HOME}/.jupyter/jupyter_notebook_config.py" \
&& echo "c.ServerApp.token = ''" >> "${HOME}/.jupyter/jupyter_notebook_config.py" \
&& echo "c.ServerApp.password = ''" >> "${HOME}/.jupyter/jupyter_notebook_config.py"

# Install python-related items
RUN conda config --quiet --add channels conda-forge \
&& conda config --quiet --add channels bioconda \
Expand All @@ -34,4 +27,11 @@ RUN conda config --quiet --add channels conda-forge \
&& rm -f "${HOME}/gurobi.tar.gz" \
&& rm -r "${HOME}/work"

# Update jupyter notebook configuration
RUN jupyter trust "${HOME}/main/COMO.ipynb" \
&& echo "c.ServerApp.ip = '0.0.0.0'" >> "${HOME}/.jupyter/jupyter_notebook_config.py" \
&& echo "c.ServerApp.root_dir = '${HOME}/main'" >> "${HOME}/.jupyter/jupyter_notebook_config.py" \
&& echo "c.ServerApp.token = ''" >> "${HOME}/.jupyter/jupyter_notebook_config.py" \
&& echo "c.ServerApp.password = ''" >> "${HOME}/.jupyter/jupyter_notebook_config.py"

VOLUME /home/joyvan/main/data/local_files

0 comments on commit a73caab

Please sign in to comment.