Skip to content

Commit b59ac8e

Browse files
committed
Mount config file instead of building into image
1 parent a30c51a commit b59ac8e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile.jupyterhub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) Jupyter Development Team.
22
# Distributed under the terms of the Modified BSD License.
33
ARG JUPYTERHUB_VERSION
4-
FROM jupyterhub/jupyterhub-onbuild:$JUPYTERHUB_VERSION
4+
FROM jupyterhub/jupyterhub:$JUPYTERHUB_VERSION
55

66
# Install dockerspawner, nativeauthenticator
77
RUN python3 -m pip install --no-cache-dir \

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
networks:
1818
- jupyterhub-network
1919
volumes:
20+
# The JupyterHub configuration file
21+
- "./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro"
2022
# Bind Docker socket on the host so we can connect to the daemon from
2123
# within the container
2224
- "/var/run/docker.sock:/var/run/docker.sock:rw"

0 commit comments

Comments
 (0)