diff --git a/jupyterhub/base/Dockerfile b/jupyterhub/base/Dockerfile
index 41b1ca9686ecf99984fb90afe5a389cccb0a5179..e30654741eece03cd8906724ab45003b73aab3ff 100755
--- a/jupyterhub/base/Dockerfile
+++ b/jupyterhub/base/Dockerfile
@@ -21,6 +21,13 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
     npm config set cache /var/cache/npm --global && \
     npm config set update-notifier false --global
 
+ENV XDG_DATA_HOME=/usr/local/share
+ENV IPYTHONDIR=/usr/local/etc/ipython
+ENV JUPYTER_CONFIG_DIR=/usr/local/etc/jupyter
+COPY jupyter_notebook_config.py ${JUPYTER_CONFIG_DIR}/
+ENV JUPYTERLAB_SETTINGS_DIR=/root/.config/jupyter/lab/user-settings
+ENV JUPYTERLAB_WORKSPACES_DIR=/root/.config/jupyter/lab/workspaces
+
 RUN python${PYTHON_VERSION} -m pip install \
         jupyterlab \
         jupyterhub \
@@ -42,13 +49,6 @@ RUN python${PYTHON_VERSION} -m pip install \
     python${PYTHON_VERSION} -m pip install jupyterlab-git && \
     python${PYTHON_VERSION} -m jupyter lab build
 
-ENV IPYTHONDIR=/usr/local/etc/ipython
-ENV JUPYTER_CONFIG_DIR=/usr/local/etc/jupyter
-COPY jupyter_notebook_config.py ${JUPYTER_CONFIG_DIR}/
-ENV JUPYTERLAB_SETTINGS_DIR=/root/.config/jupyter/lab/user-settings
-ENV JUPYTERLAB_WORKSPACES_DIR=/root/.config/jupyter/lab/workspaces
-ENV XDG_DATA_HOME=/usr/local/share
-
 RUN mkdir -p /usr/local/venv && \
     python${PYTHON_VERSION} -m venv /usr/local/venv/default && \
     . /usr/local/venv/default/bin/activate && \
@@ -82,7 +82,6 @@ RUN mkdir -p /usr/local/venv && \
     ipython kernel install --name=default
 
 RUN chmod -x /etc/update-motd.d/*
-RUN mkdir /data
 
 WORKDIR "/"
 CMD [ "jupyterhub-singleuser" ]