Update Jupyter CentOS and Unbuntu images
This commit is contained in:
parent
ce16ad46f4
commit
061416ea66
|
@ -1,7 +1,14 @@
|
|||
FROM centos:8
|
||||
|
||||
RUN yum update -y && yum install -y \
|
||||
which \
|
||||
sudo \
|
||||
python36
|
||||
|
||||
# Install jupyter
|
||||
RUN pip3 install jupyterlab
|
||||
|
||||
# Add a user `coder` so that you're not developing as the `root` user
|
||||
RUN adduser coder && \
|
||||
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
|
||||
USER coder
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
FROM ubuntu:18.04
|
||||
FROM ubuntu:20.04
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
sudo \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
# Install jupyter
|
||||
RUN pip3 install jupyterlab
|
||||
|
||||
# Add a user `coder` so that you're not developing as the `root` user
|
||||
RUN adduser --gecos '' --disabled-password coder && \
|
||||
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
|
||||
USER coder
|
||||
|
|
Loading…
Reference in New Issue