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
8bce6dc3
Commit
8bce6dc3
authored
Nov 08, 2019
by
Sang Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow configuring python version using buildarg
parent
ad3574d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
base-notebook/Dockerfile
base-notebook/Dockerfile
+3
-1
No files found.
base-notebook/Dockerfile
View file @
8bce6dc3
...
@@ -63,6 +63,7 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
...
@@ -63,6 +63,7 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
USER
$NB_UID
USER
$NB_UID
WORKDIR
$HOME
WORKDIR
$HOME
ARG
PYTHON_VERSION=default
# Setup work directory for backward-compatibility
# Setup work directory for backward-compatibility
RUN
mkdir
/home/
$NB_USER
/work
&&
\
RUN
mkdir
/home/
$NB_USER
/work
&&
\
...
@@ -82,9 +83,10 @@ RUN cd /tmp && \
...
@@ -82,9 +83,10 @@ RUN cd /tmp && \
$CONDA_DIR
/bin/conda config
--system
--prepend
channels conda-forge
&&
\
$CONDA_DIR
/bin/conda config
--system
--prepend
channels conda-forge
&&
\
$CONDA_DIR
/bin/conda config
--system
--set
auto_update_conda
false
&&
\
$CONDA_DIR
/bin/conda config
--system
--set
auto_update_conda
false
&&
\
$CONDA_DIR
/bin/conda config
--system
--set
show_channel_urls
true
&&
\
$CONDA_DIR
/bin/conda config
--system
--set
show_channel_urls
true
&&
\
if
[
!
$PYTHON_VERSION
=
'default'
]
;
then
conda
install
--yes
python
=
$PYTHON_VERSION
;
fi
&&
\
conda list python |
grep
'^python '
|
tr
-s
' '
|
cut
-d
'.'
-f
1,2 |
sed
's/$/.*/'
>>
$CONDA_DIR
/conda-meta/pinned
&&
\
$CONDA_DIR
/bin/conda
install
--quiet
--yes
conda
&&
\
$CONDA_DIR
/bin/conda
install
--quiet
--yes
conda
&&
\
$CONDA_DIR
/bin/conda update
--all
--quiet
--yes
&&
\
$CONDA_DIR
/bin/conda update
--all
--quiet
--yes
&&
\
conda list python |
grep
'^python '
|
tr
-s
' '
|
cut
-d
'.'
-f
1,2 |
sed
's/$/.*/'
>>
$CONDA_DIR
/conda-meta/pinned
&&
\
conda clean
--all
-f
-y
&&
\
conda clean
--all
-f
-y
&&
\
rm
-rf
/home/
$NB_USER
/.cache/yarn
&&
\
rm
-rf
/home/
$NB_USER
/.cache/yarn
&&
\
fix-permissions
$CONDA_DIR
&&
\
fix-permissions
$CONDA_DIR
&&
\
...
...
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