-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added some more things to it (Git, nano, Jupyterlab Git extension, R,…
… IR-kernel) and set user to notebook user and set working directory to be where the user mounts volumes
- Loading branch information
Showing
1 changed file
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |