Skip to content

Commit

Permalink
added some more things to it (Git, nano, Jupyterlab Git extension, R,…
Browse files Browse the repository at this point in the history
… IR-kernel) and set user to notebook user and set working directory to be where the user mounts volumes
  • Loading branch information
ttimbers committed Feb 5, 2022
1 parent f3e633a commit 8281d00
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
FROM continuumio/miniconda3

# Install Jupyter, JupterLab, R & the IRkernel
RUN conda install -y --quiet \
jupyter \
jupyterlab
jupyterlab \
nodejs \
r-base \
r-irkernel

# Install JupyterLab Git Extension
RUN pip install jupyterlab-git

# Create working directory for mounting volumes
RUN mkdir -p /opt/notebooks

# Make port 8888 available for JupyterLab
EXPOSE 8888

# Change to root user to do some installation and configurations
USER root

# Install Git, the nano-tiny text editor and less (needed for R help)
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends \
git
#nano-tiny \
#less

# Copy JupyterLab start-up script into container
COPY start-notebook.sh /usr/local/bin/

# Change permission of startup script and execute it
RUN chmod +x /usr/local/bin/start-notebook.sh
ENTRYPOINT ["/usr/local/bin/start-notebook.sh"]

# Switch to Jupyter user
USER "1000"

# Switch to staring in directory where volumes will be mounted
WORKDIR "/opt/notebooks"

0 comments on commit 8281d00

Please sign in to comment.