Update Jupyter CentOS and Unbuntu images

This commit is contained in:
Chris Decelles 2020-08-04 07:42:25 -04:00
parent ce16ad46f4
commit 061416ea66
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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