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
9cb64438
Commit
9cb64438
authored
Jan 14, 2016
by
Kyle Kelley
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #102 from parente/more-minimal-kernel
Remove build deps from minimal-kernel image
parents
404e0942
05d6ae4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
minimal-kernel/Dockerfile
minimal-kernel/Dockerfile
+16
-10
No files found.
minimal-kernel/Dockerfile
View file @
9cb64438
...
@@ -8,32 +8,38 @@ USER root
...
@@ -8,32 +8,38 @@ USER root
# Install all OS dependencies for fully functional notebook server
# Install all OS dependencies for fully functional notebook server
ENV
DEBIAN_FRONTEND noninteractive
ENV
DEBIAN_FRONTEND noninteractive
RUN
apt-get update
&&
apt-get
install
-yq
--no-install-recommends
\
RUN
apt-get update
&&
apt-get
install
-yq
--no-install-recommends
\
wget
\
python3-setuptools
\
python3-dev
\
build-essential
\
python3-pip
\
python3-zmq
\
python3-zmq
\
&&
apt-get clean
&&
apt-get clean
# Install Tini
# Install Tini
RUN
wget
--quiet
https://github.com/krallin/tini/releases/download/v0.6.0/tini
&&
\
RUN
python3
-c
'from urllib.request import urlretrieve;
\
urlretrieve("https://github.com/krallin/tini/releases/download/v0.6.0/tini", "tini")'
&&
\
echo
"d5ed732199c36a1189320e6c4859f0169e950692f451c03e7854243b95f4234b *tini"
|
sha256sum
-c
-
&&
\
echo
"d5ed732199c36a1189320e6c4859f0169e950692f451c03e7854243b95f4234b *tini"
|
sha256sum
-c
-
&&
\
mv
tini /usr/local/bin/tini
&&
\
mv
tini /usr/local/bin/tini
&&
\
chmod
+x /usr/local/bin/tini
chmod
+x /usr/local/bin/tini
# Configure environment
# Configure environment
ENV
SHELL /bin/bash
ENV
KG_USER jovyan
ENV
KG_USER jovyan
ENV
KG_UID 1000
ENV
KG_UID 1000
# Create jovyan user with UID=1000
# Create jovyan user with UID=1000
RUN
useradd
-m
-s
/bin/bash
-N
-u
$KG_UID
$KG_USER
RUN
useradd
-m
-s
/bin/bash
-N
-u
$KG_UID
$KG_USER
# Install Kernel Gateway
# Install modern pip then kernel gateway
RUN
pip3
install
jupyter_kernel_gateway
==
0.2.0
RUN
apt-get update
&&
\
apt-get
install
-yq
--no-install-recommends
\
build-essential
\
python3-dev
&&
\
easy_install3 pip
&&
\
pip
install
jupyter_kernel_gateway
==
0.2.0
&&
\
apt-get remove
--purge
-y
\
build-essential
\
python3-dev
&&
\
apt-get autoremove
-y
&&
\
apt-get clean
# Configure container startup
# Configure container startup
USER
nobody
EXPOSE
8888
EXPOSE
8888
WORKDIR
/tmp
WORKDIR
/tmp
ENTRYPOINT
["tini", "--", "jupyter", "kernelgateway"]
ENTRYPOINT
["tini", "--", "jupyter", "kernelgateway"]
...
...
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