Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
5ee27aa5
Commit
5ee27aa5
authored
Oct 24, 2020
by
Romain
Committed by
GitHub
Oct 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1178 from das-g/copy-with-chown-in-recipes-dockerfiles
recipes: use COPY with --chown for jovyan's files
parents
d676cdf9
d6da5aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/using/recipes.md
docs/using/recipes.md
+3
-3
No files found.
docs/using/recipes.md
View file @
5ee27aa5
...
@@ -48,7 +48,7 @@ packages desired. Next, create a new Dockerfile like the one shown below.
...
@@ -48,7 +48,7 @@ packages desired. Next, create a new Dockerfile like the one shown below.
# Start from a core stack version
# Start from a core stack version
FROM
jupyter/datascience-notebook:9f9e5ca8fe5a
FROM
jupyter/datascience-notebook:9f9e5ca8fe5a
# Install from requirements.txt file
# Install from requirements.txt file
COPY
requirements.txt /tmp/
COPY
--chown=${NB_UID}:${NB_GID}
requirements.txt /tmp/
RUN
pip
install
--requirement
/tmp/requirements.txt
&&
\
RUN
pip
install
--requirement
/tmp/requirements.txt
&&
\
fix-permissions
$CONDA_DIR
&&
\
fix-permissions
$CONDA_DIR
&&
\
fix-permissions /home/
$NB_USER
fix-permissions /home/
$NB_USER
...
@@ -60,7 +60,7 @@ For conda, the Dockerfile is similar:
...
@@ -60,7 +60,7 @@ For conda, the Dockerfile is similar:
# Start from a core stack version
# Start from a core stack version
FROM
jupyter/datascience-notebook:9f9e5ca8fe5a
FROM
jupyter/datascience-notebook:9f9e5ca8fe5a
# Install from requirements.txt file
# Install from requirements.txt file
COPY
requirements.txt /tmp/
COPY
--chown=${NB_UID}:${NB_GID}
requirements.txt /tmp/
RUN
conda
install
--yes
--file
/tmp/requirements.txt
&&
\
RUN
conda
install
--yes
--file
/tmp/requirements.txt
&&
\
fix-permissions
$CONDA_DIR
&&
\
fix-permissions
$CONDA_DIR
&&
\
fix-permissions /home/
$NB_USER
fix-permissions /home/
$NB_USER
...
@@ -118,7 +118,7 @@ RUN conda create --quiet --yes -p $CONDA_DIR/envs/$conda_env python=$py_ver ipyt
...
@@ -118,7 +118,7 @@ RUN conda create --quiet --yes -p $CONDA_DIR/envs/$conda_env python=$py_ver ipyt
# alternatively, you can comment out the lines above and uncomment those below
# alternatively, you can comment out the lines above and uncomment those below
# if you'd prefer to use a YAML file present in the docker build context
# if you'd prefer to use a YAML file present in the docker build context
# COPY environment.yml /home/$NB_USER/tmp/
# COPY
--chown=${NB_UID}:${NB_GID}
environment.yml /home/$NB_USER/tmp/
# RUN cd /home/$NB_USER/tmp/ && \
# RUN cd /home/$NB_USER/tmp/ && \
# conda env create -p $CONDA_DIR/envs/$conda_env -f environment.yml && \
# conda env create -p $CONDA_DIR/envs/$conda_env -f environment.yml && \
# conda clean --all -f -y
# conda clean --all -f -y
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment