Spaces:
Sleeping
Sleeping
modified dockerfile to handle file ownership
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -23,6 +23,12 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
23 |
COPY notebooks/ notebooks/
|
24 |
COPY data/ data/
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
# Expose Jupyter's default port
|
27 |
EXPOSE 8888
|
28 |
|
|
|
23 |
COPY notebooks/ notebooks/
|
24 |
COPY data/ data/
|
25 |
|
26 |
+
# Make sure 'jovyan' user owns these files/folders
|
27 |
+
RUN chown -R jovyan:jovyan /home/jovyan/work
|
28 |
+
|
29 |
+
# Switch back to 'jovyan' user (the default in the jupyter/docker-stacks images)
|
30 |
+
USER $NB_UID
|
31 |
+
|
32 |
# Expose Jupyter's default port
|
33 |
EXPOSE 8888
|
34 |
|