Spaces:
Build error
Build error
File size: 478 Bytes
b578b57 ebde0d5 7a53b8a a9d3011 7e2c204 a9d3011 b578b57 cb17ba6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | FROM python:3.9-slim
# install the notebook package
RUN pip install --no-cache --upgrade pip && \
pip install --no-cache notebook jupyterlab
# create user with a home directory
ARG NB_USER
ARG NB_UID
ENV USER user
ENV HOME /home/${USER}
RUN mkdir $HOME && mkdir $HOME/app
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
&& chown -R user:user $HOME/app
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
USER user
WORKDIR ${HOME}
USER root |