diff --git a/Dockerfile b/Dockerfile
index babb2d5293147191ce32e7d778bcd53bf804d8c7..6034cf7554e71b11b9dade4c6beae6a6099e307d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -91,6 +91,14 @@ COPY code-server/icons $HOME/.jupyter/icons
 RUN [[ ! -f /home/jovyan/.jupyter/jupyter_config.py ]] && touch /home/jovyan/.jupyter/jupyter_config.py ; \
 	cat /tmp/jupyter_codeserver_config.py >> /home/jovyan/.jupyter/jupyter_config.py 
 
+COPY nbgrader_config.py /tmp/nbgrader_config.py
+RUN python3 -m pip install git+https://github.com/jupyter/nbgrader.git@5a81fd5 && \
+	jupyter nbextension install --symlink --sys-prefix --py nbgrader && \
+	jupyter nbextension enable --sys-prefix --py nbgrader && \
+	jupyter serverextension enable --sys-prefix --py nbgrader && \
+	python3 -m pip install ngshare_exchange && \
+        cat  /tmp/nbgrader_config.py >> /etc/jupyter/nbgrader_config.py
+
 USER $NB_USER
 
 RUN echo -e "\e[93m***** Moves user environment to work subdirectory ****\e[38;5;241m" && \
diff --git a/nbgrader_config.py b/nbgrader_config.py
new file mode 100644
index 0000000000000000000000000000000000000000..9973982165959ad1e22871cc8404a31651143cb5
--- /dev/null
+++ b/nbgrader_config.py
@@ -0,0 +1,6 @@
+from ngshare_exchange import configureExchange
+c=get_config()
+configureExchange(c, 'http://ngshare.jhub.svc.cluster.local:8080/services/ngshare')
+# Add the following line to let students access courses without configuration
+# For more information, read Notes for Instructors in the documentation
+c.CourseDirectory.course_id = '*'